Exemplo 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;
 }
Exemplo n.º 2
0
 public override Laptop GetLaptop()
 {
     var ram = new RAM(LaptopRAMAmount);
     var hardDrive = new HardDriver(LaptopCapacity);
     var videoCard = new ColorfulVideoCard();
     var battery = new LaptopBattery();
     var motherboard = new Motherboard(ram, videoCard);
     var cpu = new CPU(LaptopNumberOfCores, LaptopBits, motherboard);
     Laptop laptop = new Laptop(battery, cpu, ram, hardDrive, videoCard);
     return laptop;
 }