Blame view

src/kernel/operation/Addition.java 363 Bytes
2e8fbd04   Remi   global refactor
1
2
3
4
5
6
7
8
9
10
11
12
13
  package kernel.operation;
  
  import kernel.BinaryOperation;
  import kernel.Cell;
  
  public class Addition extends BinaryOperation {
  
      public Addition(Cell leftCell, Cell rightCell) {
          super(leftCell, rightCell);
          this.operator = "+";
      }
  
      public Double eval() {
0c16a45a   [mandjemb]   test
14
      	
2e8fbd04   Remi   global refactor
15
16
17
          return this.leftCell.getValue() + this.rightCell.getValue();
      }
  }