Following up on the Observer/Event Pattern, itâs time for the third pattern, the Decorator Pattern.
The definition: "Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality."