//: c17:trashvisitor:Visitable.java // From Thinking in Java, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 1999 // Copyright notice in Copyright.txt // An interface to add visitor functionality to // the Trash hierarchy without modifying the // base class. package c17.trashvisitor; import c17.trash.*; interface Visitable { // The new method: void accept(Visitor v); } ///:~