Addition.java 357 Bytes
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() {
        return this.leftCell.getValue() + this.rightCell.getValue();
    }
}