public void setLength(double length ,double width) { this.length = length; this.width=width; }
public void setLength(double length ,double width) {
this.length = length;// ? ? ? ? ? ?親問下這個(gè)是什么意思。
this.width=width;// ? ? ? ? ? 同上
}
public void setLength(double length ,double width) {
this.length = length;// ? ? ? ? ? ?親問下這個(gè)是什么意思。
this.width=width;// ? ? ? ? ? 同上
}
2017-07-27
舉報(bào)
2017-07-27
將setLength方法中的length變量的值賦給屬性length,下面的width同理。