Bruce Eckel 7dfdab3a83 update
2015-05-27 23:30:19 -07:00

11 lines
260 B
Java

//: patterns/trashvisitor/Visitable.java
// An interface to add visitor functionality to
// the Trash hierarchy without modifying the
// base class.
package patterns.trashvisitor;
interface Visitable {
// The new method:
void accept(Visitor v);
} ///:~