State Design Pattern
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