Understanding Polymorphism in Java
Polymorphism is the idea of an object being able to “look” or “act” like other types of objects. Now you might wonder why an object should “look” like another type of object, or even how it can look like another object. Polymorphism exists when you have is-a style relationships. So if you have a class…