Decorator Design Pattern
Why Decorator Pattern Exists
In real applications, we often need to add extra functionality to an object.
Examples:
Adding logging to a service
Adding authentication to a controller
Adding compress
design-pattern.hashnode.dev4 min read