Example #1
0
 public Computer(MotherBoard motherBoard, Processor processor, Ram ram, Drive drive)
 {
     MotherBoard = motherBoard;
     Processor   = processor;
     Ram         = ram;
     Drive       = drive;
 }
 public override Computer Create()
 {
     MotherBoard = new MotherBoard("Acer", "MotherBoard", 1000);
     Processor   = new Processor("Acer", "MotherBoard", 1000);
     Ram         = new Ram("Acer", "MotherBoard", 1000);
     Drive       = new Drive("Acer", "MotherBoard", 1000);
     return(this);
 }
 public HomeComputer(MotherBoard motherBoard, Processor processor, Ram ram, Drive drive)
     : base(motherBoard, processor, ram, drive)
 {
 }