Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 694 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 694 Bytes

State

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. The state pattern can be interpreted as a strategy pattern, which is able to switch a strategy through invocations of methods defined in the pattern's interface.

callback visualization

For more information, Wikipedia provides a great overview of the pattern: Wikipedia Article