rectangle.java

来自「面向对象编程的代码Example;面向对象编程的代码Example」· Java 代码 · 共 24 行

JAVA
24
字号
package LSP1;

public class Rectangle {
	public void SetWidth(double w)
	{
		this.itsWidth = w;
	}
	public void SetHeight(double h)
	{
		this.itsHeight = h;
	}
	public double GetHeight()
	{
		return this.itsHeight;
	}
	public double GetWidth()
	{
		return this.itsWidth;
	}
	private Point itsTopLeft;
	private double itsWidth;
	private double itsHeight;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?