what is polymorphism?

polymorphism is the capability of object to take many forms. its means objects from different types can be treated in the same way.

  • there are two main types of polymorphism
    • Static polymorphism - this is achieved by overloading the methods
    • Dynamic polymorphism - this was achieved by overriding the methods

need to learn more about type casting before continue this - typecasting