?? cubic.java
字號:
public class Cubic extends Rectangle {
protected int z;
protected int length;
public Cubic() {
super();
}
public Cubic(int x, int y, int z,
int length, int width, int height) {
super(x, y, width, height);
this.z = z;
this.length = length;
}
public void setZ(int z) { this.z = z; }
public void setLength(int length) { this.length = length; }
public int getZ() { return z; }
public int getLength() { return length; }
public int getVolumn() {
// 可以直接使用父類中的width、height成員
return length*width*height;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -