ArchitectureCode Structure
KW-0075Polymorphism
Concept
Meaning
ability to use a common interface while allowing different implementations for different behaviors
Example
“Same method call behaves differently depending on the object type implementing it”
Reference
Improves flexibility and extensibility; core OOP principle
Related
inheritanceinterfaceoop