Saved Bookmarks
| 1. |
Compare static and dynamic polymorphism. |
|
Answer» There are 2 types of polymorphism they are static and dynamic. (a) Compile time (early binding/static) polymorphism It is the ability of the compiler to relate or bind a function call with the function definition during compilation time itself. Examples are Function overloading and operator overloading b) Run time (late binding/dynamic) polymorphism It is the ability of the compiler to relate or bind a function call with the function definition during mn time. It uses the concept of pointers and inheritance. |
|