When would you use the decorator design pattern?

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.

Sizin İçin Seçtik  What are the 3 groups of design patterns what are their differences?

Leave a Reply

Your email address will not be published. Required fields are marked *