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