DESIGN-PATTERNS Course

State

Go back

We will have an attribute, the state. And in each method, we will check the state and choose a course of action.

  • ✅ : behavior-driven code
  • 🚫 : ...