August 2018
Intermediate to advanced
248 pages
5h 51m
English
A snack vending machine is an example of the State pattern in everyday life. Vending machines have different states and react differently depending on the amount of money that we insert. Depending on our selection and the money we insert, the machine can do the following:
There are, for sure, more possible states, but you get the point.
In the software category, we can think of the following examples:
Read now
Unlock full access