← Back

Polymorphism

Same interface, different underlying forms (runtime overriding).

ooppolymorphismUpdated 2025-09-01

Dynamic Dispatch

  • Method chosen by actual object type

Example

  • Animal a = new Dog(); a.speak();