Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

State Pattern

Technique

A Gang of Four behavioral design pattern that lets an object alter its behavior when its internal state changes, by delegating state-specific behavior to separate state objects rather than to a large conditional statement.

Facts
Origin Year
1994 1
Core Principle
Allows an object to alter its behavior when its internal state changes. 2
Connections

Associated With

Erich Gamma, Pioneers

Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the State pattern among the original 23.

In Field

Sources
1. Wikipedia: Design Patterns (book)
Wikimedia FoundationLead section
Quote, Lead section
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns.
View the Source
2. State pattern, Wikipedia
Introduction
Quote, Introduction
The state pattern is a behavioral software design pattern that allows an object to alter its behavior when its internal state changes.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.