Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: shuijing-cpu-java Download
  • Category:
  • Java Develop
  • Tags:
  • File Size:
  • 31kb
  • Update:
  • 2016-04-24
  • Downloads:
  • 0 Times
  • Uploaded by:
  • 张文蔷
 Description: With class describes the computer CPU speed and hard drive capacity. Requirements Java application has four categories, names are PC, CPU, HardDisk and Test, where Test is the main class.  PC with UML class diagram CPU and HardDisk class association as follows: where, CPU type requires getSpeed ​ ​ () Returns the value of the speed, requiring setSpeed ​ ​ (int m) method of the value of the parameter m is assigned to speed. HardDisk class requires getAmount () Returns the value of the amount of required setAmount (int m) method parameter m is assigned to amount. PC class requires setCPU (CPU c) the value of the parameter c is assigned to cpu, requires setHardDisk (HardDisk h) method parameter values ​ ​ h is assigned to HD, requirements show () method can show cpu speed and hard drive capacity. Requirements  main class Test of (1) main method to create a CPU target cpu, cpu own speed is set to 2200 (2) main method to create a HardDisk targe
 Downloaders recently: [More information of uploader 张文蔷]
 To Search:
File list (Check if you may need any files):
 

shuijing cpu java.docx
    

CodeBus www.codebus.net