1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package kernel.operation; import kernel.BinaryOperation; import kernel.Cell; public class Multiplication extends BinaryOperation { public Multiplication(Cell leftCell, Cell rightCell) { super(leftCell, rightCell); this.operator = "*"; } public Double eval() { return this.leftCell.getValue() * this.rightCell.getValue(); } }