Polymorphism

From JholJhapata
Revision as of 05:29, 15 August 2019 by Admin (talk | contribs)

Polymorphism meaning "one name many forms", which is also referred to as the third pillar of object-oriented programming. "Poly" means many and "morph" means forms. Polymorphism provides the ability to a class to have multiple implementations with the same name.

Types of Polymorphism

Polymorphism can be static or dynamic. In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time.

Static Polymorphism

Dynamic Polymorphism