Skip to content

Latest commit

 

History

History

Decorator

Decorator Pattern

Structural Type

Intent:

Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.

Visual Diagram

Visual Diagram Decorator Pattern

image by refactoring guru