Decorator Pattern

The Decorator Pattern is a structural design pattern that allows behavior to be added to individual objects dynamically without modifying their class. This pattern promotes flexibility and reusability by enabling the extension of object functionality at runtime. It is particularly useful when you need to adhere to the open/closed principle in software design.