Structural Design Patterns

All 23 classic Gang of Four patterns for object-oriented software design.

7 patterns
Structural

Adapter

Wraps an object with a mismatched interface so it can work with code that expects a different one.

Structural

Bridge

Splits a class into two independent hierarchies - abstraction and implementation - connected through composition.

Structural

Composite

Lets individual objects and groups of them be handled through the same interface, regardless of nesting depth.

Structural

Decorator

Adds new behavior to a single object by wrapping it in layers that share its interface.

Structural

Facade

Hides a tangle of interacting classes behind one simple entry point.

Structural

Flyweight

Shares the common data of many similar objects to cut memory usage.

Structural

Proxy

Stands in for another object behind the same interface, intercepting calls to add checks, caching, or lazy loading.