What is the difference between command and strategy pattern?

The main difference is , the command does some action over the object . It may change the state of an object. While Strategy decides how to process the object. It encapsulates some business logic.

Sizin İçin Seçtik  Which backend framework is most popular in 2021?

Leave a Reply

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