What is the difference between strategy and decorator pattern?

The strategy pattern allows you to change the implementation of something used at runtime . The decorator pattern allows you augment (or add to) existing functionality with additional functionality at run time.

Sizin İçin Seçtik  Does Spring use prototype design pattern?

Leave a Reply

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