文件名称:column
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 6kb
- 下载次数:
- 0次
- 提 供 者:
- fan****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
(1) 编写一个代表圆柱体的Cylinder类,该类是Circle类的子类。Cylinder类包括圆柱体的高度变量height以及计算圆柱体的体积方法volume()和计算表面积的方法surfaceArea()。
(2) 编写测试Cylinder类的CylinderTest类,并在该类得main方法中调用Cylinder类的相关方法。
(3) 重写Point和Circle类的equals()、toString()方法,并测试这些方法的正确性。
-(1) the preparation of a representative cylinder of the Cylinder class, such is the Circle class subclass. Cylinder cylinder type, including a high degree of variable height, as well as methods of calculating the size of cylinder volume () method and calculation of surface area surfaceArea (). (2) the preparation of test Cylinder class CylinderTest category, and in such a main method to call the relevant methods Cylinder category. (3) rewrite the Point and Circle class equals (), toString () method, and test the correctness of these methods.
(2) 编写测试Cylinder类的CylinderTest类,并在该类得main方法中调用Cylinder类的相关方法。
(3) 重写Point和Circle类的equals()、toString()方法,并测试这些方法的正确性。
-(1) the preparation of a representative cylinder of the Cylinder class, such is the Circle class subclass. Cylinder cylinder type, including a high degree of variable height, as well as methods of calculating the size of cylinder volume () method and calculation of surface area surfaceArea (). (2) the preparation of test Cylinder class CylinderTest category, and in such a main method to call the relevant methods Cylinder category. (3) rewrite the Point and Circle class equals (), toString () method, and test the correctness of these methods.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
column
......\circle.java
......\Cylinder.class
......\Cylinder.java
......\CylinderTest.class
......\CylinderTest.java
......\Mainclass.java
......\p2
......\..\Point.class
......\p3
......\..\circle.class
......\p4
......\..\Mainclass.class
......\Point.java
......\circle.java
......\Cylinder.class
......\Cylinder.java
......\CylinderTest.class
......\CylinderTest.java
......\Mainclass.java
......\p2
......\..\Point.class
......\p3
......\..\circle.class
......\p4
......\..\Mainclass.class
......\Point.java