State Pattern

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:

    My generation, dear Ron, swore on the Altar of God that whoever proclaims the intent of destroying the Jewish state or the Jewish people, or both, seals his fate.
    Menachem Begin (1913–1992)

    Man is eminently a storyteller. His search for a purpose, a cause, an ideal, a mission and the like is largely a search for a plot and a pattern in the development of his life story—a story that is basically without meaning or pattern.
    Eric Hoffer (1902–1983)