云大JAVA实验5Lab #5(陆歌浩).docVIP

  • 17
  • 0
  • 约2.35千字
  • 约 3页
  • 2016-12-15 发布于江苏
  • 举报
云南大学软件学院 实验报告 课程: Java程序设计实验 学期: 2012-2013学年 第一学期 任课教师: 陆歌浩 专业: 软件工程 学号: 20101120007 序号: 姓名: 孙金文 成绩: 实验5 Applying OO Concepts Using Java 一、实验目的 练习Java中面向对象概念的应用--学会使用现有对象和自定义类。 二、实验内容 Program Create a class called Circle.java with fields named radius, area, and diameter.? Include methods named setRadius(), getRadius, and computeDiameter(), which calculates the circles diameter, and computeArea(), which computes the circles area.? Hint:? diameter of a circle is twice its radius.? Hint:? area of a circle is 3.14 multiplied by the square of the radius.? Create a

文档评论(0)

1亿VIP精品文档

相关文档