June 2018
Intermediate to advanced
280 pages
7h 46m
English
The visitor pattern defines a set of operations in a single class: it defines one method for each type of object from the structure it has to operate on. Adding a new set of operations can be done simply by creating another visitor. The class diagram is as follows:

The visitor pattern is based on the following classes:
Read now
Unlock full access