圆柱体类的java写法,column (1)编写一个代表圆柱体的Cylinder类 联合开发网 - pudn.com...

column

所属分类:Java编程

开发工具:Java

文件大小:6KB

下载次数:29

上传日期:2008-07-06 10:40:55

上 传 者:fangfei

说明:  (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.)

文件列表:[举报垃圾]

column

......\circle.java

......\Cylinder.class

......\Cylinder.java

......\CylinderTest.class

......\CylinderTest.java

......\Mainclass.java

......\p2

......\..\Point.class

......\p3

......\..\circle.class

......\p4

......\..\Mainclass.class

......\Point.java

近期下载者:

相关文件:

收藏者:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值