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:

    Feminism, like Boston, is a state of mind. It is the state of mind of women who realize that their whole position in the social order is antiquated, as a woman cooking over an open fire with heavy iron pots would know that her entire housekeeping was out of date.
    Rheta Childe Dorr (1866–1948)

    We took advantage of [the Indians’] ignorance and inexperience to incline them the more easily toward treachery, lewdness, avarice, and every sort of inhumanity and cruelty, after the example and pattern of our ways.
    Michel de Montaigne (1533–1592)