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:
“During those years in Stamps, I met and fell in love with William Shakespeare. He was my first white love.... it was Shakespeare who said, When in disgrace with fortune and mens eyes. It was a state of mind with which I found myself most familiar. I pacified myself about his whiteness by saying that after all he had been dead so long it couldnt matter to anyone any more.”
—Maya Angelou (b. 1928)
“With only one life to live we cant afford to live it only for itself. Somehow we must each for himself, find the way in which we can make our individual lives fit into the pattern of all the lives which surround it. We must establish our own relationships to the whole. And each must do it in his own way, using his own talents, relying on his own integrity and strength, climbing his own road to his own summit.”
—Hortense Odlum (1892?)