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:

    “I met a Californian who would
    Talk California—a state so blessed
    He said, in climate, none had ever died there
    A natural death, and Vigilance Committees
    Had had to organize to stock the graveyards
    And vindicate the state’s humanity.”
    —Robert Frost (1874–1963)

    “No, I will be the pattern of all patience,
    I will say nothing.”
    —William Shakespeare (1564–1616)