public Calculator()
 {
     arithmeticUnit = new ArithmeticUnit();
     controlUnit    = new ControlUnit();
 }
예제 #2
0
 public Divide(ArithmeticUnit unit, double operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
예제 #3
0
 public Div(ArithmeticUnit unit, int operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
예제 #4
0
 public Mult(ArithmeticUnit unit, double operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
예제 #5
0
 public Calculator()
 {
     this.arithmeticUnit = new ArithmeticUnit();
     this.controlUnit    = new ControlUnit();
 }
예제 #6
0
 public Div(ArithmeticUnit arithmeticUnit, int operand)
 {
     this.arithmeticUnit = arithmeticUnit;
     this.operand        = operand;
 }
예제 #7
0
 public Calculator()
 {
     cUnit = new ControleUnit();
     aUnit = new ArithmeticUnit();
 }