Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 330 Bytes

File metadata and controls

12 lines (8 loc) · 330 Bytes

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