From 0218c678e13e1cb94a352c91733cea68467dc566 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Sun, 14 Feb 2021 23:06:35 +0200 Subject: start from scratch --- Polymorphism/Shapes/Shape.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Polymorphism/Shapes/Shape.h (limited to 'Polymorphism/Shapes/Shape.h') diff --git a/Polymorphism/Shapes/Shape.h b/Polymorphism/Shapes/Shape.h deleted file mode 100644 index f31e42e..0000000 --- a/Polymorphism/Shapes/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 -- cgit v1.3.1-23-gd82d