What Is Polymorphism?
In this lesson, the concept of polymorphism will be explained which is an important part of OOP.
We'll cover the following...
We'll cover the following...
Definition
The word Polymorphism is a combination of two Greek words, Poly, which means many, and Morph which means forms.
In OOP, polymorphism refers to the same object exhibiting different forms and behaviors.
Let’s have a look at the example of a vending machine. We have several products in it. The customer can buy any of these products. All of these products have different properties. This is an example of Polymorphism.