In this chapter, we will complete our discovery trip of the 23 Gang of Four patterns. Now, let's have a look at the three last design patterns of the behavioral patterns category. They are as follows:
In this section, we will talk about the visitor pattern, which allows us to separate data and their associated treatments.
The visitor pattern allows us to externalize and centralize the actions that must be executed on object; these objects cannot have any links between them.
These actions will not be implemented in the class of the objects but in external classes.
So, this allows us to add any action ...