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:

    No matter how corrupt and unjust a convict may be, he loves fairness more than anything else. If the people placed over him are unfair, from year to year he lapses into an embittered state characterized by an extreme lack of faith.
    Anton Pavlovich Chekhov (1860–1904)

    Art is the imposing of a pattern on experience, and our aesthetic enjoyment is recognition of the pattern.
    Alfred North Whitehead (1861–1947)