Making same named methods work differently for different type objects.
-
Generalization pattern
-
Encapsulation
-
Inheritance
-
Polymorphism
-
None of the above
D
Correct answer
Explanation
Polymorphism allows methods with the same name to behave differently based on the object type they operate on. Through method overriding in inheritance or interface implementation, the same method name can have type-specific implementations. Generalization is a UML relationship, Encapsulation hides data, and Inheritance is the mechanism that enables polymorphism but isn't the behavior itself.