14 lines
325 B
Java
14 lines
325 B
Java
|
//: patterns/trashvisitor/VAluminum.java
|
||
|
// Aluminum for the visitor pattern.
|
||
|
package patterns.trashvisitor;
|
||
|
import patterns.trash.*;
|
||
|
|
||
|
public class VAluminum extends Aluminum
|
||
|
implements Visitable {
|
||
|
public VAluminum(double wt) { super(wt); }
|
||
|
@Override
|
||
|
public void accept(Visitor v) {
|
||
|
v.visit(this);
|
||
|
}
|
||
|
} ///:~
|