public class Desktop extends Computer {
static int raidLevel;
public Desktop(String maufacturer, String model, int drivecap, String color, int raid, double price) {
super(maufacturer, model, drivecap, color, price);
raidLevel = raid;
}
public int getraid(){
return raidLevel;
}
public void setraid(int raid){
raidLevel = raid;
}
@Override
public String toString() {
return String.format("\nDesktop Computer\n\nManufacturer: %s\nModel: %s\nCPU:\n\tType: %s" +
"\n\tSpeed: %f\n\tCache: %d\n\tFSB: %d\nHard Drive: %d\nRaid Level: %d\nColor: %s\nPrice: %f\n",
getmanufacturer(), getmodel(), cpu.gettype(), cpu.getspeed(), cpu.getcache(), cpu.getFSB(), gethardDrive(),
this.getraid(), getcolor(), getprice());
}
}
Thursday, January 26
!ANSWER 3! Desktop
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment