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:
“The superficiality of the American is the result of his hustling. It needs leisure to think things out; it needs leisure to mature. People in a hurry cannot think, cannot grow, nor can they decay. They are preserved in a state of perpetual puerility.”
—Eric Hoffer (19021983)
“Put out the light, and then put out the light.
If I quench thee, thou flaming minister,
I can again thy former light restore
Should I repent me; but once put out thy light,
Thou cunningst pattern of excelling nature,
I know not where is that Promethean heat
That can thy light relume.”
—William Shakespeare (15641616)