Look-Alikes: Strategy, State and Command

Strategy, State and Command have the same class diagram: a promise, a few classes that keep it, and an object that holds one; what tells them apart is who picks the object, whether it changes itself, and whether it can be stored and undone, and picking the wrong one puts a decision in the wrong place.

By

Updated

Cheat sheet: Look-Alikes: Strategy, State and Command
Category
Data Structures
Level
Journeyman
Tags
Command Pattern, OOP, State Pattern, Strategy Pattern