public Calculator() { arithmeticUnit = new ArithmeticUnit(); controlUnit = new ControlUnit(); }
public Subtract(ArithmeticUnit unit, double operand) { this.unit = unit; this.operand = operand; }
public Divide(ArithmeticUnit unit, double operand) { this.unit = unit; this.operand = operand; }
public Multiply(ArithmeticUnit unit, double operand) { this.unit = unit; this.operand = operand; }