1.

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 mentionedThis question was posed to me by my college director while I was bunking the class.My doubt stems from Software Design Pattern topic in section Design and Implementation of Software Engineering

Answer»

The correct option is (C) All 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.



Discussion

No Comment Found

Related InterviewSolutions