SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Compose objects into tree structures to represent part-whole hierarchies. / Composite lets clients treat individual objects and compositions of objects uniformly.
|
Bridge
|
|
Adapter
|
|
Composite
|
|
Observer
|
Explanation:
Detailed explanation-1: -The Composite design pattern allows us to arrange objects into tree structures to represent part-whole hierarchies. It allows client to treat individual objects as well as collection of objects in similar manner.
Detailed explanation-2: -Composite design pattern is used when we have to represent a part-whole hierarchy.
Detailed explanation-3: -The Composite pattern combines objects into tree structures to represent either the whole hierarchy or a part of the hierarchy. This means the Composite pattern allows clients to treat individual objects and compositions of objects uniformly.
There is 1 question to complete.