Multiple choice technology architecture

A class that surrounds a given class, adds new capabilities to it, and passes all the unchanged methods to the underlying class

  1. Flyweight Pattern

  2. Façade Pattern

  3. Composite Pattern

  4. Decorator Pattern

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

The Decorator Pattern attaches additional responsibilities to an object dynamically. It provides a flexible alternative to subclassing for extending functionality by wrapping the original object and passing unchanged methods through to it.