Skip to content

State Pattern

Aprius edited this page Nov 8, 2024 · 9 revisions

What

The state pattern, which closely resembles Strategy Pattern, is a behavioral software design pattern, also known as the objects for states pattern. This pattern is used in computer programming to encapsulate varying behavior for the same object based on its internal state.

Usage

Clone this wiki locally