Decorator

Teach and apply the Decorator (Wrapper) pattern to attach new behaviors to objects dynamically via composable wrapper layers. Use when users ask about Decorator, Wrapper, adding behavior at runtime, avoiding subclass explosion from optional features, or comparing Decorator to Proxy, Adapter, or Composite.

mdadul Updated

File contents

mdadul/agent-skills/tree/main/skills/design-pattern/structural/decorator commit 495cc2dc36

Frequently asked questions

npx skillmds@latest add mdadul/decorator