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.
Read moreWhy is it called Strategy pattern?
The idea behind the strategy pattern is that “algorithms can be selected at runtime.” (Wikipedia, Strategy Pattern) The pattern, in essence, is selecting the right strategy (or behavior) for solving a particular problem at runtime . Hence, it’s name.
Read moreWhat are the 23 design patterns?
List of the Original 23 Patterns PurposeDesign PatternAspect(s) that can varyCreationalAbstract Factoryfamilies of product objectsBuilderhow a composite object gets createdFactory Methodsubclass of object that is instantiatedPrototypeclass of object that is instantiatedDesign Patterns cs.lmu.edu › ~ray › notes › designpatterns
Read moreWhat are the 23 design patterns?
List of the Original 23 Patterns PurposeDesign PatternAspect(s) that can varyCreationalAbstract Factoryfamilies of product objectsBuilderhow a composite object gets createdFactory Methodsubclass of object that is instantiatedPrototypeclass of object that is instantiatedDesign Patterns cs.lmu.edu › ~ray › notes › designpatterns
Read moreWhat are the 3 types of patterns?
Design patterns are divided into three fundamental groups:
Read moreWhat are the 3 types of patterns?
Design patterns are divided into three fundamental groups:
Read moreHow many design patterns are there?
As per the design pattern reference book Design Patterns – Elements of Reusable Object-Oriented Software , there are 23 design patterns which can be classified in three categories: Creational, Structural and Behavioral patterns.
Read more