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