文件名称:PC
- 所属分类:
- JSP源码/Java
- 资源属性:
- 上传时间:
- 2018-09-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- Amg***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
CPU类要求getSpeed()返回speed的值,要求setSpeed(int m)方法将参数m的值赋值给speed。HardDisk类要求getAmount()返回amount的值,要求setAmount(int m)方法将参数m的值赋值给amount。PC类要求setCPU(CPU c)将参数c的值赋值给cpu,要求setHardDisk(HardDisk h)方法将参数h的值赋值给HD,要求show()方法能显示cpu的速度和硬盘的容量。(The UML diagrams associated with PC and CPU and HardDisk classes are as follows:
The CPU class requires getSpeed () to return the value of speed, and the setSpeed (int m) method to assign the value of the parameter m to speed. The HardDisk class requires getAmount () to return the value of amount, and requires the setAmount (int m) method to assign the value of parameter m to amount. The PC class requires the setCPU (CPU c) to assign the value of parameter C to the CPU, the setHardDisk (HardDisk h) method to assign the value of parameter h to HD, and the show () method to display the speed of the CPU and the capacity of the hard disk.)
The CPU class requires getSpeed () to return the value of speed, and the setSpeed (int m) method to assign the value of the parameter m to speed. The HardDisk class requires getAmount () to return the value of amount, and requires the setAmount (int m) method to assign the value of parameter m to amount. The PC class requires the setCPU (CPU c) to assign the value of parameter C to the CPU, the setHardDisk (HardDisk h) method to assign the value of parameter h to HD, and the show () method to display the speed of the CPU and the capacity of the hard disk.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
PC\.classpath | 232 | 2018-09-26 |
PC\.project | 378 | 2018-09-26 |
PC\bin\CPU.class | 440 | 2018-09-26 |
PC\bin\HardDisk.class | 458 | 2018-09-26 |
PC\bin\PC.class | 1056 | 2018-09-26 |
PC\bin\Test.class | 689 | 2018-09-26 |
PC\src\CPU.java | 139 | 2018-09-26 |
PC\src\HardDisk.java | 147 | 2018-09-26 |
PC\src\PC.java | 287 | 2018-09-26 |
PC\src\Test.java | 324 | 2018-09-26 |
PC\bin | 0 | 2018-09-26 |
PC\src | 0 | 2018-09-26 |
PC | 0 | 2018-09-26 |