State pattern

The state pattern is a behavioral software design pattern that allows an object to alter its behavior when its internal state changes. This pattern is close to the concept of finite-state machines.

Source: Wikipedia — State pattern (CC BY-SA 4.0)

State pattern

The state pattern is a behavioral software design pattern that allows an object to alter its behavior when its internal state changes. This pattern is close to the concept of finite-state machines.

Source: Wikipedia "State pattern" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy