Skip to main content

5 docs tagged with "structural-patterns"

View all tags

Adapter Pattern

A structural pattern that allows incompatible interfaces to work together by wrapping one interface with a compatible one.

Composite Pattern

A structural pattern that composes objects into tree structures to represent part-whole hierarchies, letting clients treat individual objects and compositions uniformly.

Decorator Pattern

A structural pattern that dynamically adds behavior to an object by wrapping it in decorator objects, without altering the original class.

Facade Pattern

A structural pattern that provides a simplified interface to a complex subsystem, hiding its internal complexity from client code.

Proxy Pattern

A structural pattern that provides a surrogate object which controls access to another object, adding security, caching, logging, or lazy initialization transparently.