15 lines
343 B
Java
15 lines
343 B
Java
// patterns/trashvisitor/VPaper.java
|
|
// ©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);
|
|
}
|
|
}
|