Subtraction.java 332 Bytes
package kernel.operation;

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();
    }
}