summaryrefslogtreecommitdiffstats
path: root/Master/Software Architektur/SWA_Prakt3/src/swa/prakt3/ArithmeticSubstraction.java
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Software Architektur/SWA_Prakt3/src/swa/prakt3/ArithmeticSubstraction.java')
-rwxr-xr-xMaster/Software Architektur/SWA_Prakt3/src/swa/prakt3/ArithmeticSubstraction.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/Software Architektur/SWA_Prakt3/src/swa/prakt3/ArithmeticSubstraction.java b/Master/Software Architektur/SWA_Prakt3/src/swa/prakt3/ArithmeticSubstraction.java
new file mode 100755
index 0000000..ebb94a7
--- /dev/null
+++ b/Master/Software Architektur/SWA_Prakt3/src/swa/prakt3/ArithmeticSubstraction.java
@@ -0,0 +1,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() ;
+ }
+}