Students Save 30%! Learn & create with unlimited courses & creative assets Students Save 30%! Save Now
by
Lessons:25Length:4.2 hours

2.20 State Pattern

Switch/case statements are evil, especially when designing something similar to a finite state machine. The state pattern helps separate actions eliminate or reduce the need for switch/case statements.