搜索资源列表
AreaAndLength
- 类的封装 1. 实验目的 使用类来封装对象的属性和功能。 2. 实验要求 (1)编写一个简单的Java应用程序,该程序中定义3个类:Tangle、Lader和Circle,分别用来刻画“三角形”、“梯形”和“圆形”,具体要求如下: Tangle类具有类型为double的三条边,以及周长、面积属性,具有计算并返回周长、面积以及三条边的功能,另外还要具有一个boolean型的属性,用来判断三个数能否构成一个三角形。 Lander类具有类型为
n_step
- 一个关于阶梯的小算法,可以计算上阶梯的方法,也可以扩展-An algorithm on a small ladder
tixing
- 一个简单的计算梯形的程序,当输入一个梯形的上底、下底和高,程序自动计出梯形的体积!-A simple procedure for the calculation of ladder, when the input on a trapezoidal base, under the bottom and high, the program automatically count out the volume ladder!
Java2
- 编写一个Java应用程序,该程序中有3个类:Trangle、Leder和Circle,分别用来刻画“三角形”、“梯形”和“圆形”。-Write a Java application, the program has three classes: Trangle Leder and Circle, were used to portray the "triangle", "ladder" and "round".