What is the difference between pattern and strategies?

State Pattern defines the “what” and “when” part of an Object. Example: What can an object when it’s in a certain state. Strategy pattern defines the “How” part of an Object. Example: How a Sorting object sorts data.

Sizin İçin Seçtik  What is Strategy design pattern in Spring?

Leave a Reply

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