Polymorphism is one of the key concepts
of object oriented programming; polymorphism enables us to have different
methods with the same name. The appropriate method to be called will be decided
at compile/run time.
There are 2 types of Polymorphism.
Static / Compile time Polymorphism
Dynamic / Runtime Polymorphism.
Static / Compile time Polymorphism is achieved through function/method overloading.
Dynamic / runtime Polymorphism is achieved using the concept of inheritance; the methods defined in the base class can be overridden in the derived class and can be called dynamically at runtime.
Let us see static and dynamic Polymorphism in detail in the following posts.
There are 2 types of Polymorphism.
Static / Compile time Polymorphism
Dynamic / Runtime Polymorphism.
Static / Compile time Polymorphism is achieved through function/method overloading.
Dynamic / runtime Polymorphism is achieved using the concept of inheritance; the methods defined in the base class can be overridden in the derived class and can be called dynamically at runtime.
Let us see static and dynamic Polymorphism in detail in the following posts.
No comments:
Post a Comment