What is polymorphism in OOP?

What is polymorphism in OOP?

Approach: Explain ability of different types to be treated as a common base type.

The ability of different classes to be treated as instances of the same class through inheritance. It allows one interface to be used for a general class of actions.

Follow-up: Difference between static and dynamic polymorphism?

Key concepts: method overriding, interfaces, dynamic dispatch.