public static Computer CreateComputer(CPU cpu, RAM ram, GPU gpu) { Computer computer = new Computer(); computer.cpu = cpu; computer.ram = ram; computer.gpu = gpu; return computer; }
public Computer BusinessComputerAssemblyLine() { return(Computer.CreateComputer((BusinessCPU)cpuf.create(1), (BusinessRAM)ramf.create(1), (BusinessGPU)gpuf.create(1))); }
public Computer GameComputerAssemblyLine() { return(Computer.CreateComputer((GameCPU)cpuf.create(0), (GameRAM)ramf.create(0), (GameGPU)gpuf.create(0))); }