Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public PersonalComputer(CentralProcessingUnit processor, RamMemory ramMemory, HardDrive hardDrives, VideoCard videoCard)
     : base(processor, ramMemory, hardDrives, videoCard)
 {
 }
Esempio n. 3
0
 public Laptop(CentralProcessingUnit processor, RamMemory ramMemory, HardDrive hardDrives, VideoCard videoCard, LaptopBattery battery)
     : base(processor, ramMemory, hardDrives, videoCard)
 {
     this.Battery = battery;
 }