CS Electrical And Electronics
@cselectricalandelectronics

What is Polymorphism?

All QuestionsCategory: Computer ScienceWhat is Polymorphism?
elonmusk123456789012345 asked 2 years ago

Polymorphism is one of the four pillars of Object-oriented programming. ”Poly ” means  ”many” and ”morph ” means ”form ”, simply put Polymorphism means the concept of many forms.  Polymorphism means the ability for higher abstract classes to have more specific classes.  An example of Polymorphism can be a ”parent ” class called Animals which has \”child ” classes like ”Dog ” and ”Cat ”, which are the sub and more specific classes of the Animal Class. Thus, Polymorphism is the ability of a programming language to present the same interface for several different underlying data types.