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 three types of patterns?

Leave a Reply

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