Пример #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();
 }