1.

Which design patterns benefit from the multiple inheritances?(a) Adapter and observer pattern(b) Code pattern(c) Glue pattern(d) Star patternThis question was addressed to me by my college director while I was bunking the class.Asked question is from Multiple Inheritance topic in portion Class Hierarchies, Library & Containers of C++

Answer»

Correct OPTION is (a) ADAPTER and OBSERVER pattern

Easiest explanation - Adapter and observer patterns benefit from the MULTIPLE INHERITANCES.



Discussion

No Comment Found

Related InterviewSolutions