Learning path 3 of 6 · Intermediate
Structural patterns
Concerned with structure, such as class members. Many are wrappers that mimic the underlying interface, which stresses good API design.
0 of 7 lessons complete
- 1Adapter
Lets objects with incompatible interfaces collaborate.
- 2Bridge
Splits a large class or closely related classes into two hierarchies, abstraction and implementation, that vary independently.
- 3Composite
Composes objects into tree structures and lets clients treat individual objects and compositions uniformly.
- 4Decorator
Attaches new behaviours to objects by placing them inside wrapper objects that share the same interface.
- 5Facade
Provides a simplified interface to a library, framework or other complex set of classes.
- 6Flyweight
Fits more objects into RAM by sharing common state between many objects.
- 7Proxy
Provides a substitute that controls access to another object.