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:
“Its important to remember that feminism is no longer a group of organizations or leaders. Its the expectations that parents have for their daughters, and their sons, too. Its the way we talk about and treat one another. Its who makes the money and who makes the compromises and who makes the dinner. Its a state of mind. Its the way we live now.”
—Anna Quindlen (20th century)
“His talent was as natural as the pattern that was made by the dust on a butterflys wings. At one time he understood it no more than the butterfly did and he did not know when it was brushed or marred. Later he became conscious of his damaged wings and of their construction and he learned to think and could not fly any more because the love of flight was gone and he could only remember when it had been effortless.”
—Ernest Hemingway (18991961)