November 2019
Beginner to intermediate
674 pages
15h
English
The last pattern in this chapter, state, allows an object to change its behavior on demand. This is especially useful when an object implements an algorithm that goes through different execution states. If the object's internal behavior changes when its state is changed, you've got an excellent candidate for a state pattern.
This Gang of Four pattern can only be used in rare occasions. A typical candidate for the introduction ...
Read now
Unlock full access