Java Reference
In-Depth Information
public class PoolCalculator implements Volume {
private double width;
private double length;
private double minDepth;
private double maxDepth;
public PoolCalculator(){}
public PoolCalculator(double width,
double length,
double minDepth,
double maxDepth){
this.width = width;
this.length = length;
this.minDepth = minDepth;
this.maxDepth = maxDepth;
}
/**
* @return the width
*/
public double getWidth() {
return width;
}
/**
* @param width the width to set
*/
public void setWidth(double width) {
this.width = width;
}
/**
* @return the length
*/
public double getLength() {
return length;
}
Search WWH ::




Custom Search