文件名称:PC
介绍说明--下载内容来自于网络,使用问题请自行百度
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 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.