Esempio n. 1
0
 public override PC GetPC()
 {
     var ram = new RAM(PCRAMAmount);
     var hardDrive = new HardDriver(PCHardDriveCapacity);
     var videoCard = new ColorfulVideoCard();
     var motherboard = new Motherboard(ram, videoCard);
     var cpu = new CPU(PCNumberOfCores, PCBits, motherboard);
     PC pc = new PC(cpu, ram, hardDrive, videoCard);
     return pc;
 }
Esempio n. 2
0
 public override void GetAllProducts(out PC pc, out Server server, out Laptop laptop)
 {
     pc = this.GetPC();
     server = this.GetServer();
     laptop = this.GetLaptop();
 }