Which mechanism is applied to use a design pattern in an OO system?
A. Inheritance
B. Composition
C. All of the mentioned
D. None of the mentioned
Answer:A
Which mechanism is applied to use a design pattern in an OO system?
A. Inheritance B. Composition C. All of the mentioned D. None of the mentioned
Explanation:Using inheritance, an existing design pattern becomes a template for a new subclass.Composition is a concept that leads to aggregate objects.