Multiple choice technology architecture

You are required to write a class which should behave in the similar way as another class in the system. It should have all the methods and properties as of the other class and should have ability to modify the operations of the methods defined in the main class

  1. Inheritance pattern

  2. Generalization pattern

  3. Specialization pattern

  4. Implementation pattern

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Inheritance allows a derived class to acquire all methods and properties of a base class and can override or modify their behavior. This matches the requirement of having the same interface as another class with the ability to modify operations. While 'Inheritance pattern' isn't a standard GoF name, it describes the fundamental OOP concept. Generalization and Specialization are UML relationships, not standalone patterns.