State Design Pattern

Go back

Aliases πŸ“Œ: None

Description πŸ“š: We keep track of the state of our object, for instance, using an attribute. In each applicable method, we check the state and execute code according to its current value.

Advantages βœ…

  • Behavior-driven code

Disadvantages 🚫

  • ???

Notes πŸ“

  • None