コード例 #1
0
 public MotherBoard(string manufacturer, RAM ram, CentralPU cpu, GraphicsPU gpu, HardDrive hardDrive)
 {
     this.manufacturer = manufacturer;
     temporaryMemory   = ram;
     processor         = cpu;
     storage           = hardDrive;
     graphics          = gpu;
 }
コード例 #2
0
 public Computer()
 {
     HardDrive   hardDrive   = new HardDrive(1000, 1000);
     RAM         ram         = new RAM(1000, "Intel");
     CentralPU   cpu         = new CentralPU("Intel", "Doobie");
     GraphicsPU  gpu         = new GraphicsPU("Bleep Co.", 1000);
     MotherBoard motherBoard = new MotherBoard("BlackHat", ram, cpu, gpu, hardDrive);
 }