Blame view

src/kernel/operation/Addition.java 325 Bytes
2e8fbd04   Remi   global refactor
1
2
  package kernel.operation;
  
2e8fbd04   Remi   global refactor
3
4
5
  import kernel.Cell;
  
  public class Addition extends BinaryOperation {
4186cd92   Remi   fix tests
6
7
8
9
10
11
12
13
14
15
16
17
  	
  	public Addition(Cell leftCell, Cell rightCell) {
  		super(leftCell, rightCell);
  	}
  	
  	public String getOperator() {
  		return "+";
  	}
  	
  	public double eval() {
  		return this.leftCell.getValue() + this.rightCell.getValue();
  	}
2e8fbd04   Remi   global refactor
18
  }