Polymorphism

Polymorphism:

The polymorphism can be achieved in two ways
1. complie time
2.run time polymorphism
                                                       
                                                        polymorphism
compile                                                                                             runtime
|                                                                                                               |
Static Binding                                                                              dynamic binding
|                                                                                                               |
Over loading                                                                                over riding


Function loading— define  the some function name with define parameters in the same class is called overloading.

Function overriding—define same function name same parameters in different class to change behavior is called overriding











Comments