Polymorphism is a ability to take multiple forms.
Poly means Many and morphism means forms.
Inheritance : Without modifying existing class if we want to extend meaning of the class then we should use inheritance.
-Parent class known as Super class and Child class known as Sub class.
- To create sub class we should use "extend" keyword.
Anonymous
Dec 16, 2019
Polymorphism means one name multiple form...
Poly stands for many and morph stands for form, interface,etc.
Anonymous
Dec 27, 2018
Using polymorphism we can reduce maintenance of the system. It can achieve using * Method Overloading and * Method Overriding.