- 14
- 0
- 约 72页
- 2016-12-11 发布于重庆
- 举报
Windows98 汕头大学计算机教学中心 class Cylinder {public Cylinder(){// initialise instance variablesx = 0;}public int sampleMethod(int y){// put your code herereturn x + y;}private double radius;private int height;private double pi=3.14;private String color;public double SetCylinder(double r, int h){radius=r;height=h;return r+h;}public void SetCylinder(String str){color=str;} public class App7_3 {public static void main(String[] args){double r_h;Cylinder volu=new Cylinder();r_h=volu.SetCylinder(2.5,5);volu.SetCylinder(红色);System.out.println(圆柱底和高之和=+r_h);System.out.println(圆柱体体积=+volu.volume());volu.show
您可能关注的文档
最近下载
- 新19J108 外墙外保温薄抹灰系统建筑构造.docx
- 巧手制作不倒翁(教案) 北师大版二年级上册综合实践活动.pdf VIP
- 冀人版科学六年级下册活动手册答案 课件(1至19课).pptx VIP
- PSA变压吸附制氮设备培训-资料.doc
- 企业会计综合实训(第二版)刘燕习题答案.pdf VIP
- 20222024年义务教育国家质量监测八年级音乐学科试题.docx VIP
- 15G366-1- 桁架钢筋混凝土叠合板(60mm厚底板).pdf VIP
- 生活垃圾收集站(压缩式)设置标准 DG_TJ08-402-2021.pdf VIP
- 大型医用设备使用效益分析报告(案例模板).docx
- Canon佳能470EX-AI 使用说明书.pdf
原创力文档

文档评论(0)