Development Methods & Design

Decorator Pattern

English

Overview

A design pattern for dynamically adding new behavior to an existing object.

Details

Instead of using inheritance, it extends behavior by wrapping an object in another object (a decorator). Its defining feature is being able to flexibly combine added behaviors without modifying the original class.

More Programming terms