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:

    ... the idea of a classless society is ... a disastrous mirage which cannot be maintained without tyranny of the few over the many. It is even more pernicious culturally than politically, not because the monolithic state forces the party line upon its intellectuals and artists, but because it has no social patterns to reflect.
    Agnes E. Meyer (1887–1970)

    It may be tempting to focus on the fact that, even among those who support equality, men’s involvement as fathers remains a far distance from what most women want and most children need. Yet it is also important to acknowledge how far and how fast many men have moved towards a pattern that not long ago virtually all men considered anathema.
    Katherine Gerson (20th century)