Also known as
- Smart Proxy
- Wrapper
Intent of Decorator Design Pattern
The Decorator pattern allows for the dynamic addition of responsibilities to objects without modifying their existing code. It achieves this by providing a way to "wrap" objects within objects of similar interface, enhancing Java design patterns flexibility.
About 4 min