Polymorphism (OOP Pillar)

Back to Core Pillars

The ability of different objects to respond to the same message/method call in different ways. Polymorphism enables writing code that works with objects of different types through a common interface, supporting extensibility and the open/closed principle.

programming-paradigms oop polymorphism