Polymorphism:
Polymorphism literally means taking more than one form.
Polymorphism is one of the OOPs feature that allows us to perform a single action in different ways.
In other words, polymorphism allows you define one interface and have multiple implementations.
Polymorphism is a characteristic of being able to assign a different behavior or value in a subclass, to something that was declared in a parent class.
There are two types of polymorphism:
- Overloading
- Overriding