Package design.pattern.structural
Interface Decorator
public interface Decorator
Decorator
is used to add a simple functionality to existing classes without changing the total behaviorDecorator
is used to add a simple functionality to existing classes without changing the total behavior