Website Summary Files Commits Branches @commit @diff @stats
path: root / Polymorphism / Shape.h
diff options
context:
space:
mode:
1 files changed, 0 insertions, 27 deletions
-rw-r--r--Polymorphism/Shape.h27
diff --git a/Polymorphism/Shape.h b/Polymorphism/Shape.h
deleted file mode 100644
index fbce027..0000000
--- a/Polymorphism/Shape.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma once
-
-#include "Point.h"
-
-class Shape
-{
- Point* points;
- int pointsCount;
-
- void CopyFrom(const Shape& other);
- void Free();
-
-public:
- Shape(int pointsCount);
- Shape(const Shape& other);
- Shape& operator=(const Shape& other);
- virtual ~Shape();
-
- void setPoint(int x, int y, int ind);
- const Point& getPoint(int ind);
-
- virtual double getPer() =0;
- virtual double getArea() = 0;
-
- virtual Shape* clone() = 0;
-
-}; \ No newline at end of file