Introduction - If you have any usage issues, please Google them yourself
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.