The Decorator pattern is best when the decorators modify the behavior of the methods in the interface . A decorator can add methods, but added methods don’t carry through when you wrap in another decorator.
The Decorator pattern is best when the decorators modify the behavior of the methods in the interface . A decorator can add methods, but added methods don’t carry through when you wrap in another decorator.