テキスト
Structural Patterns
Motivation
- Connections between objects
- Structural object pattern subtype
- Composition of object - each one can be simple or composite
Structure
- Tree data structures
- Examples : File system, Hierarchy - work, HTML - DOM, XML
When to use
- We have different objects and we want to treat them the same way
- We want to present hierarchy of objects
Composite Pattern