Texbook:
"Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of object uniformly."
Component:
- defines the domain-specific interface that Client uses.
Leaf:
- collaborates with objects conforming to the Target interface.
Composite:
- defines an existing interface that needs adapting.
Client:
- adapts the interface of Adaptee to the Target interface.
Pros:
✅
Cons:
❌

