Decorator – Design Pattern
Simplest explanation I’ve heard of the decorator pattern is it’s “used to extend the functionality of a single object without affecting any other instances of the same class.” The decorator pattern is used to achieving a separation of concerns and is essential tool in the Open/Closed…