previous
|
start
|
next
Visitors
Visitor
is an interface type
Supply a separate class for each new operation
Most basic form of
accept
method:
public void accept(Visitor v) { v.visit(this); }
Programmer must implement
visit
previous
|
start
|
next