Problem Statement
Which structural pattern allows you to add responsibilities to objects dynamically?
Explanation
The Decorator pattern attaches extra responsibilities to objects at runtime without modifying their class. This supports flexible behaviour extension.
Practice Sets
This question appears in the following practice sets: