2015-11-03 12:00:44 -08:00

12 lines
243 B
Java

// patterns/trashvisitor/Visitor.java
// The base interface for visitors.
package patterns.trashvisitor;
interface Visitor {
void visit(Aluminum a);
void visit(Paper p);
void visit(Glass g);
void visit(Cardboard c);
void total();
}