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; }
public override void GetAllProducts(out PC pc, out Server server, out Laptop laptop) { pc = this.GetPC(); server = this.GetServer(); laptop = this.GetLaptop(); }