Exemplo n.º 1
0
 public Calculator()
 {
     arithmeticUnit = new ArithmeticUnit();
     controlUnit    = new ControlUnit();
 }
Exemplo n.º 2
0
 public Subtract(ArithmeticUnit unit, double operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
Exemplo n.º 3
0
 public Divide(ArithmeticUnit unit, double operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
Exemplo n.º 4
0
 public Multiply(ArithmeticUnit unit, double operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }