- 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
您可能关注的文档
最近下载
- DL_T 781—2021 电力用高频开关整流模块.docx VIP
- 声母韵母整体认读音节带默写表(齐全).doc VIP
- 2-5 第6课《散步》大词小用与以小见大-作业单 统编版七年级语文上册大单元教学.docx VIP
- GB 50058-2014 爆炸危险环境电力装置设计规范.docx VIP
- 高三第四次教学工作会议.ppt
- 剑桥考级高频英语单词汇3(附习题答案)4000 Essential English Words Book.pdf VIP
- SECTION使用说明完整版.doc VIP
- 实例要素式强制执行申请书(申请执行用).pdf VIP
- 土地复垦方案编制实务(下册).docx
- 一升二数学《暑假作业》天天练.docx VIP
原创力文档

文档评论(0)