summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog2/Prakt2/geomObj/Shape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Bachelor/Prog2/Prakt2/geomObj/Shape.cpp')
-rw-r--r--Bachelor/Prog2/Prakt2/geomObj/Shape.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Bachelor/Prog2/Prakt2/geomObj/Shape.cpp b/Bachelor/Prog2/Prakt2/geomObj/Shape.cpp
new file mode 100644
index 0000000..8eb43e5
--- /dev/null
+++ b/Bachelor/Prog2/Prakt2/geomObj/Shape.cpp
@@ -0,0 +1,14 @@
+#include "Shape.h"
+
+Shape::Shape()
+{
+}
+
+Shape::~Shape()
+{
+}
+
+double Shape::operator-(Shape* toSub)
+{
+ return (this->getArea() - toSub->getArea());
+}