public Computer(CentralProcessingUnit centralProcessingUnit, RamMemory ramMemory, HardDrive hardDrives, VideoCard videoCard) { this.CentralProcessingUnit = centralProcessingUnit; this.RamMemory = ramMemory; this.HardDrives = hardDrives; this.VideoCard = videoCard; this.Motherboard = new Motherboard(); this.Motherboard.Register(this.CentralProcessingUnit); this.Motherboard.Register(this.RamMemory); this.Motherboard.Register(this.VideoCard); }
public Laptop(CentralProcessingUnit processor, RamMemory ramMemory, HardDrive hardDrives, VideoCard videoCard, LaptopBattery battery) : base(processor, ramMemory, hardDrives, videoCard) { this.Battery = battery; }
public PersonalComputer(CentralProcessingUnit processor, RamMemory ramMemory, HardDrive hardDrives, VideoCard videoCard) : base(processor, ramMemory, hardDrives, videoCard) { }
public Server(CentralProcessingUnit processor, RamMemory ramMemory, HardDrive hardDrives) : base(processor, ramMemory, hardDrives, new VideoCard(new MonochromeDrawer())) { }