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