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:
“When the Revolutionaries ran short of gun wadding the Rev. James Caldwell ... broke open the church doors and seized an armful of Watts hymnbooks. The preacher threw them to the soldiers and shouted, Give em Watts, boysgive em Watts!”
—For the State of New Jersey, U.S. public relief program (1935-1943)
“Each child is an adventure into a better lifean opportunity to change the old pattern and make it new.”
—Hubert H. Humphrey (19111978)