- Category:
- Java Develop
- Tags:
-
- File Size:
- 3kb
- Update:
- 2018-09-26
- Downloads:
- 0 Times
- Uploaded by:
- Amgist
Description: 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.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
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 |