Visitor – Definition

Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.

Gang of four (Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides)

Visitor – Struktur

Visitor – Code Beispiel

Die Code-Beispiele sind jeweils bei github zu finden.