文件名称:experiment10
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
(1) 编写一个代表圆柱体的Cylinder类,该类是Circle类的子类。Cylinder类包括圆柱体的高度变量height、计算圆柱体的体积方法volume()和计算表面积的方法surfaceArea()。
(2) 编写测试Cylinder类的CylinderTest类,并在该类得main方法中调用Cylinder类的相关方法。
(3) 程序调试通过后填写实验报告。
-( 1) the preparation of a representative cylinder Cylinder class, the class is a subclass of Circle. The Cylinder includes cylinder is highly variable height, calculation of cylinder volume method ( volume ) and the calculation method of surface area ( surfaceArea ).( 2) writing a test class Cylinder class CylinderTest, and the main method called Cylinder correlation method.( 3) through debugging procedures after completing the experiment report.
(2) 编写测试Cylinder类的CylinderTest类,并在该类得main方法中调用Cylinder类的相关方法。
(3) 程序调试通过后填写实验报告。
-( 1) the preparation of a representative cylinder Cylinder class, the class is a subclass of Circle. The Cylinder includes cylinder is highly variable height, calculation of cylinder volume method ( volume ) and the calculation method of surface area ( surfaceArea ).( 2) writing a test class Cylinder class CylinderTest, and the main method called Cylinder correlation method.( 3) through debugging procedures after completing the experiment report.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CylinderTest.java
Cylinder.java
Cylinder.java