//Method public void printSpec() { CPU currCPU = machineMaker.makeCPU(); Memory currMemory = machineMaker.makeMemory(); GPU currGPU = machineMaker.makeGPU(); double totalPrice = currCPU.Price + currGPU.Price + currMemory.Price; displayBox.Items.Clear(); displayBox.Items.Add("Price\tComponent"); displayBox.Items.Add("*********************************"); displayBox.Items.Add(currCPU.ToString()); displayBox.Items.Add(currGPU.ToString()); displayBox.Items.Add(currMemory.ToString()); displayBox.Items.Add("*********************************"); displayBox.Items.Add("Total Price: " + totalPrice.ToString()); }
public GPU makeGPU() { mulGPU = new MultimediaGPU(); return(mulGPU); }
public GPU makeGPU() { gameGPU = new GameGPU(); return(gameGPU); }
public GPU makeGPU() { lapGPU = new LaptopGPU(); return(lapGPU); }
public GPU makeGPU() { busGPU = new BusinessGPU(); return(busGPU); }