M

Mr. Dubey • 52.30K Points
Coach

Q. When would you use the GOF Composite design pattern?

(A) to decouple an abstraction from its implementation so that the two can vary independently
(B) to translates an existing class interface into a compatible target interface
(C) to arrange object hierarchies such that the client code can access both the individual objects and compositions in a uniform manner
(D) to improve the system overall performance
Correct : Option (C)

Share

Discusssion

Login to discuss.

Be the first to start discuss.