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:
“I met a Californian who would
Talk Californiaa state so blessed
He said, in climate, none had ever died there
A natural death, and Vigilance Committees
Had had to organize to stock the graveyards
And vindicate the states humanity.”
—Robert Frost (18741963)
“No, I will be the pattern of all patience,
I will say nothing.”
—William Shakespeare (15641616)