Multiple choice technology architecture

Attach additional responsibilities to an object dynamically.It provides a flexible alternative to subclassing for extending functionality.

  1. Chain of responsibility

  2. Adapter

  3. Decorator

  4. Composite

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

The Decorator design pattern attaches additional responsibilities to an object dynamically without affecting other objects of the same class. It provides a flexible alternative to subclassing for extending functionality by wrapping the original object and adding behavior at runtime. Chain of Responsibility handles request passing, Adapter converts interfaces, and Composite composes objects into tree structures.