Search This Blog

Wednesday, January 25

!ANSWER 3! CPU Class

public class CPU {
 private String type;
 private float speed;
 private int cCache, cFsb;
 
 public CPU (String CPUtype,float CPUspeed, int cache, int FSB){
  type = CPUtype;
  speed = CPUspeed;
  cCache = cache;
  cFsb = FSB;
 }
 public String gettype()
 {
  return type; 
 }
 public void settype(String CPUtype){
  type = CPUtype;
 }
 public float getspeed()
 {
  return speed;
 }
 public void setspeed(float CPUspeed)
 {
  speed = CPUspeed;
 }
 public int getcache()
 {
  return cCache;
 }
 public void setcache(int cache)
 {
  cCache = cache;
 }
 public int getFSB()
 {
  return cFsb;
 }
 public void setFSBe(int FSB)
 {
  cFsb = FSB;
 }
}

No comments:

Post a Comment