State Pattern
  • is a behavioral design pattern that lets an object alter its behavior when its internal state changes. It appears as if the object changed its class

Structure

Code Examples

Comparisons

Resources