OOPS – Polymorphism Part – 1

Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.

1. Animal Class

2. Dog Class

3. Fish Class

4. Runner Class

Please share your feedback. Contact us at online.nimit@gmail.com