Ejemplo n.º 1
0
 public Input()
 {
     add = new Addition();
     minus = new Subtraction();
     mult = new Multiply();
     div = new Division();
 }
Ejemplo n.º 2
0
 public CalculatorBody()
 {
     this.sum = new Addition();
     this.difference = new Subtraction();
     this.product = new Multiplication();
     this.quotient = new Division();
     this.exponent = new Exponentiation();
     this.sqrt = new SquareRoot();
     this.input = new UserInputOutput();
 }