lader.java

来自「商品交易系统」· Java 代码 · 共 29 行

JAVA
29
字号

public class Lader 
{
	double above,bottom,height;
	Lader(double a,double b,double h)
	{
		above=a;
		bottom=b;
		height=h;
	}
	public void setAbove(double a)
	{
		above=a;
	}
	public void setBottom(double b)
	{
		bottom=b;
	}
	public void setHeight(double h)
	{
		height=h;
	}
	double computeArea()
	{
		return(above+bottom)*height/2.0;
	}
	
}

⌨️ 快捷键说明

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