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
Answer» C. to arrange object hierarchies such that the client code can access both the individual objects and compositions in a uniform manner
2.4k
0
Do you find this helpful?
1

Discussion

No comments yet