What is difference between Strategy pattern and command 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  What are the 3 types of patterns?

Leave a Reply

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