15 lines
372 B
Java
15 lines
372 B
Java
|
//: patterns/trash/Glass.java
|
|||
|
// <20>2015 MindView LLC: see Copyright.txt
|
|||
|
// The Glass class with prototyping.
|
|||
|
package patterns.trash;
|
|||
|
|
|||
|
public class Glass extends Trash {
|
|||
|
private static double val = 0.23f;
|
|||
|
public Glass(double wt) { super(wt); }
|
|||
|
@Override
|
|||
|
public double value() { return val; }
|
|||
|
public static void value(double newVal) {
|
|||
|
val = newVal;
|
|||
|
}
|
|||
|
} ///:~
|