2015-09-07 11:44:36 -06:00
|
|
|
// patterns/trashvisitor/Visitor.java
|
2015-06-15 17:47:35 -07:00
|
|
|
// The base interface for visitors.
|
|
|
|
package patterns.trashvisitor;
|
|
|
|
|
|
|
|
interface Visitor {
|
2015-11-03 12:00:44 -08:00
|
|
|
void visit(Aluminum a);
|
|
|
|
void visit(Paper p);
|
|
|
|
void visit(Glass g);
|
|
|
|
void visit(Cardboard c);
|
|
|
|
void total();
|
2015-09-07 11:44:36 -06:00
|
|
|
}
|