How to implement the state architectural pattern
Define and maintain a state machine within an object-oriented software system.
![Washing machine](https://www.oreilly.com/content/wp-content/uploads/sites/2/2020/01/washing-machine-1301839_1400-2672572c1c6edf70f19edce487cc35d3.jpg)
The State pattern is a convenient way to implement a state machine that’s more maintainable than a typical switch-statements-in-multiple-places implementation. In this video segment, Allen Holub explains how the individual methods of objects will change behavior based on the specific state that an object is in.