Skip to content
Daniel edited this page Apr 2, 2015 · 3 revisions

Intent:

Represents 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.

Structure:

Example:

Reference:

http://en.wikipedia.org/wiki/Visitor_pattern

Clone this wiki locally