Polymorphism:- STATIC AND DYNAMIC BINDING
Polymorphism means "Ability to take more than one form". It simply means one name multiple form. The concept of polymorphism is implemented using the overloaded function and operators.
The overloaded Member function are selected and invoking by matching argument, both type and number. This information is known to the compiler at the compile time and compiler is able to select the appropriate function for a particular call at the compile time itself .
If the Member function could be selected while the program is running. This is known as runtime polymorphism.
when selection of the appropriate function is done dynamically at runtime known as LATE Binding or Dynamic binding.
The overloaded Member function are selected and invoking by matching argument, both type and number. This information is known to the compiler at the compile time and compiler is able to select the appropriate function for a particular call at the compile time itself .
This is called early binding or Static Binding or static linking and also known as compile time polymorphism.
"Early binding simple means that the object is bound to its function call at compile time".If the Member function could be selected while the program is running. This is known as runtime polymorphism.
when selection of the appropriate function is done dynamically at runtime known as LATE Binding or Dynamic binding.
Comments
Post a Comment