Multiple choice technology architecture

Attach additional responsibilities to an object dynamically, provide a flexible alternative to sub classing for extended functionality

  1. Mediator

  2. Memento

  3. Strategy

  4. Decorator

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Decorator pattern attaches additional responsibilities to an object dynamically, providing a flexible alternative to subclassing for extending functionality. Mediator defines how objects interact, Memento captures/restores state, and Strategy encapsulates interchangeable algorithms.