云南大学软件学院Java实验五.docxVIP

  • 5
  • 0
  • 约4.28千字
  • 约 5页
  • 2020-04-02 发布于广东
  • 举报
姓名: 定欢 学号:20141120188 班级: 日期:2016年10月20日 成绩: JAVA实验五 一、实验目的: Applying 00 Concepts Using Java 二、实验要求: Create a class called Circle.java with fields named radius (半径), area (面积),and diameter (直径). Include methods named setRadius (), getRadius(), and computeDiameter(), which calculates the circle 1s diameter, and computeArea(), which computes the circle 1s 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 class called Testcircle? java whose main method declares 2 Circle ob jects ? Using setRadius () method, ass

文档评论(0)

1亿VIP精品文档

相关文档