2015-09-07 11:44:36 -06:00
|
|
|
|
// patterns/trashvisitor/VPaper.java
|
2015-06-15 17:47:35 -07:00
|
|
|
|
// <20>2015 MindView LLC: see Copyright.txt
|
|
|
|
|
// Paper for the visitor pattern.
|
|
|
|
|
package patterns.trashvisitor;
|
|
|
|
|
import patterns.trash.*;
|
|
|
|
|
|
|
|
|
|
public class VPaper extends Paper
|
|
|
|
|
implements Visitable {
|
|
|
|
|
public VPaper(double wt) { super(wt); }
|
|
|
|
|
@Override
|
|
|
|
|
public void accept(Visitor v) {
|
|
|
|
|
v.visit(this);
|
|
|
|
|
}
|
2015-09-07 11:44:36 -06:00
|
|
|
|
}
|