Blame view

src/kernel/operation/Multiplication.java 410 Bytes
2e8fbd04   Remi   global refactor
1
2
  package kernel.operation;
  
2e8fbd04   Remi   global refactor
3
4
5
6
  import kernel.Cell;
  
  public class Multiplication extends BinaryOperation {
  
1ff9c9a9   [mandjemb]   Recommandation pr...
7
8
9
  	private static final long serialVersionUID = 1L;
  
  	public Multiplication(Cell leftCell, Cell rightCell) {
2e8fbd04   Remi   global refactor
10
          super(leftCell, rightCell);
2e8fbd04   Remi   global refactor
11
  
1ff9c9a9   [mandjemb]   Recommandation pr...
12
13
14
15
16
17
18
19
      }
  	
  	public String getOperator(){
  		return "*";
  	}
  	
  	
      public double eval() {
2e8fbd04   Remi   global refactor
20
21
22
          return this.leftCell.getValue() * this.rightCell.getValue();
      }
  }