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 represent the state of an object. This is a clean way for an object to partially change its type at runtime.
Famous quotes containing the words state and/or pattern:
“A state without the means of some change is without the means of its conservation.”
—Edmund Burke (17291797)
“Although the pattern prevailed,
The breaks were everywhere. That she could think
Of no thread capable of the necessary
Sew-work.”
—Gwendolyn Brooks (b. 1917)