Structural Design Patterns
Pertains to composition of Classes and Objects.
- Structural class-creation patterns use inheritance to compose interfaces.
- Structural object-patterns define ways to compose objects to obtain new functionality.
Patterns
Adapter | Match interfaces of different classes. |
Bridge | Separates an object’s interface from its implementation. |
Composite | A tree structure of simple and composite objects. |
Decorator | Add responsibilities to objects dynamically. |
Facade | A single class that represents an entire subsystem. |
Flyweight | A fine-grained instance used for efficient sharing. |
Private Class Data | Restricts accessor/mutator access. |
Proxy | An object representing another object. |