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  Peugeot 2008 2021 model kaç para?

Leave a Reply

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