Esempio n. 1
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;
 }
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();
 }