Blame view

src/kernel/operation/Subtraction.java 332 Bytes
2e8fbd04   Remi   global refactor
1
2
  package kernel.operation;
  
2e8fbd04   Remi   global refactor
3
4
5
6
7
8
9
10
11
12
13
14
15
  import kernel.Cell;
  
  public class Subtraction extends BinaryOperation {
  
      public Subtraction(Cell leftCell, Cell rightCell) {
          super(leftCell, rightCell);
          this.operator = "-";
      }
  
      public Double eval() {
          return this.leftCell.getValue() - this.rightCell.getValue();
      }
  }