Slide 25
Slide 25 text
Design Patterns, Elements of Reusable Object-Orientated Software
Gamma, Helm,Johnson, Vlissides
“Visitor pattern lets you add operations to classes without
changing them. Visitor achieves this by using a technique called
double-dispatch.
“The operation that gets executed depends on both the type of
Visitor and the type of Element it visits.”
The Visitor Pattern