📄 rectangle.java
字号:
package shape_package;
public class rectangle implements shape //使用到shape类
{
private double w;
private double h;
public void setPara(PARAM Obj) //使用到PARAM类
{
w = Obj.W; h = Obj.H;
}
public void drawShape()
{
System.out.println("draw a rectangle with width=" + w
+ " and height=" + h );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -