Decorator Design Pattern in Java Example
Decorator design pattern is used to modify the functionality of an object at runtime. At the same time other instances of the same class will not be affected by this, so individual object gets the modified behavior. Decorator design pattern is one of the structural design pattern (such as [Adapter Pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in […]