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

1. to decouple an abstraction from its implementation so that the two can vary independently

2. to translates an existing class interface into a compatible target interface

3. to arrange object hierarchies such that the client code can access both the individual objects and compositions in a uniform manner

4. to improve the system overall performance

  • c. to arrange object hierarchies such that the client code can access both the individual objects and compositions in a uniform manner
Subscribe Now

Get All Updates & News