summaryrefslogtreecommitdiffstats
path: root/Master/Software Architektur/SWA_Prakt3/src/swa/prakt3/ArithmeticMultiplication.java
blob: abc833a851850d236197c07c35aa9ebe482cef76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package swa.prakt3;

public class ArithmeticMultiplication extends ArithmeticOperation {

	
	
	public ArithmeticMultiplication(ArithmeticExpression operand1,
			ArithmeticExpression operand2) {
		super(operand1, operand2);
		operationSign = "*";
	}
	@Override
	public Number doOperation(Number op1, Number op2) {
		return op1.doubleValue() * op2.doubleValue() ;
	}
}