Difference between revisions of "Polymorphism"
From JholJhapata
(Created page with "== Types of Polymorphism == == Static Polymorphism == == Dynamic Polymorphism ==") |
|||
| Line 1: | Line 1: | ||
| + | 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 == | == 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 == | == Static Polymorphism == | ||
== Dynamic Polymorphism == | == Dynamic Polymorphism == | ||
Revision as of 05:29, 15 August 2019
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.