/*
* Surface.java
*
*/
class Surface {
private String name; // for identification purposes
private double length;
private double width;
public Surface(String initName, double initLength, double initWidth) {
name = initName;
length = initLength;
width = initWidth;
}
public String getName() {
return name;
}
public double getLength() {
return length;
}
public double getWidth() {
return width;
文章来源于领测软件测试网 https://www.ltesting.net/