Structural Patterns
Part of the unified study index: Home · canonical comparisons in selection guide.
Structural patterns explain how objects and classes fit together into larger assemblies without tangling them. Where creational patterns handle making objects and behavioral patterns handle who does what, these seven handle how pieces connect.
- Adapter — translates one interface into another so old and new code cooperate.
- Bridge — splits controls from devices so each side grows independently.
- Composite — treats single items and groups through one contract for uniform trees.
- Decorator — wraps objects in combinable add-on layers without subclassing.
- Facade — offers one simple entry step over a multi-device routine.
- Flyweight — shares heavy repeated state so large collections stay cheap.
- Proxy — stands a lightweight stand-in in front of a costly object for lazy or guarded access.
Quick picker: mismatched interfaces → Adapter; two growing dimensions → Bridge; part-whole trees → Composite; combinable add-ons → Decorator; routine simplification → Facade; massive repetition → Flyweight; costly or guarded access → Proxy.