예제 #1
0
 public Sub(ArithmeticUnit arithmeticUnit, int operand)
 {
     this.arithmeticUnit = arithmeticUnit;
     this.operand        = operand;
 }
예제 #2
0
 public Mul(ArithmeticUnit unit, int operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
예제 #3
0
 public Calculator()
 {
     arithmeticUnit = new ArithmeticUnit();
     controlUnit    = new ControlUnit();
 }