Glossary term
What is state pattern? Meaning for developers
An object changes its behaviour when its internal state changes, usually with a clear table of allowed transitions.
Learn it properly · Design Patterns & LLDLesson 3: Behavioural Patterns: Strategy, Observer, Command, State and Chain of ResponsibilityThe five main behavioural patterns plus iterator and template method, with runnable TypeScript.