例题4-9
摘要:
class Circle{double radius;Circle(double r){radius=r;}double computerArea(){return 3.14*radius*radius;}void setRadius(double newRadius){radius=newRadius;}double getRadius(){return radius;}}class Cone{Circle bottom;double height;Cone(Circle c,double h){bottom=c;height=h;}double computerVolume(){doubl 阅读全文
posted @ 2013-03-21 20:22 快乐的铲屎官 阅读(171) 评论(0) 推荐(0) 编辑