?? rectangle.java
字號:
//rectangle.java
package shape;
public class rectangle extends locate implements shapes{
public int width,height;
public double area(){
return width*height;
}
public double circulms(){
return 2*(width+height);
}
public rectangle(int x,int y,int w,int h){
super(x,y);
width=w;
height=h;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -