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

public class ArithmeticSubstraction extends ArithmeticOperation {

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