コード例 #1
0
 public Computer(CRTMonitor monitor, Processor cpu, InputDevice keyboard)
 {
     this.monitor = monitor;
     this.cpu = cpu;
     this.keyboard = keyboard;
 }
コード例 #2
0
 public Computer()
 {
     monitor = new CRTMonitor();
     keyboard = new InputDevice();
     cpu = new Processor();
 }