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  Akbank Birikim Hesabı nedir?

Leave a Reply

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