Structural Patterns

Patterns for composing classes and objects into larger structures.

Structural patterns describe how objects are wired together: wrapping, adapting, sharing and composing. The GoF catalogue contains seven: Adapter, Bridge, Composite, Decorator, Facade, Flyweight and Proxy. Several of them look alike in code — a class that holds a reference to another object — but differ in intent. The wrapper patterns comparison puts them side by side.

Articles