Course Content
Core Java
About Lesson

Polymorphism means “many forms”, and it occurs when we have many classes that are related to each other by inheritance.

It allows methods to do different things based on the object it is acting upon, even if the method shares the same name across these objects.

It allows one interface to be used for a general class of actions, and specific actions are determined at runtime.

Types of Polymorphism

  1. Compile Time Polymorphism (Static Polymorphism)
  2. Runtime Polymorphism

Scroll to Top