February 2016
Intermediate to advanced
382 pages
8h 1m
English
The state design pattern is really similar to the strategy design pattern we looked at in the previous chapter. Its purpose is to:
Allow us to choose a different behavior of an object based on the object's internal state.
Basically, the difference between the state design pattern and the strategy design pattern comes from the following two points:
Implementing the state design pattern also closely resembles the implementation of the strategy design pattern. ...
Read now
Unlock full access