One of the fundamental ideas of object-oriented programming (OOP), polymorphism addresses circumstances where something happens in a variety of ways.
It refers to the idea in computer science that you can access objects of many types through the same interface. Each type may offer a unique, autonomous implementation of this interface.
You can run a quick test to determine if an object is polymorphic. The object is polymorphic if it successfully passes several is-a or instanceof tests. All Java classes extend the class Object, as was mentioned in our piece regarding inheritance. As a result, Java objects all pass at least two instanceof tests, making them all polymorphic.
Know more about polymorphism here:
https://brainly.com/question/29241000
#SPJ4