# 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.

![Cheat sheet: Look-Alikes: Strategy, State and Command](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/995ef412a0474f5f9d9cc8d5af8e38e8.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Command Pattern, OOP, State Pattern, Strategy Pattern
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-strategy-state-command-cheat-sheet
