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:
“Deacon King was tried for violating the Sabbath, and so hot was the debate that it was referred to the church council, which ultimately decided, after long and grave debate, that the deacon had committed a work of necessity and mercy.”
—For the State of Massachusetts, 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)