May 2022
Intermediate to advanced
678 pages
11h 48m
English
This chapter covers the Visitor pattern.
It represents an operation to be performed on the elements of an object structure. The Visitor pattern lets you define a new operation without changing the classes of the elements on which it operates.
This pattern can be used in many different scenarios. Using this pattern, you often add new operations to an object without modifying its class definition. To achieve this, you separate an algorithm from the object structure. This may sound surprising to you, but ...
Read now
Unlock full access