From 1a912f836f096e2fc67381831a1f654199f5e7f9 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Fri, 28 May 2021 14:28:34 +0300 Subject: Update ShapesCollection.h --- Sem. 14/ShapesCollection/ShapesCollection.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sem. 14/ShapesCollection/ShapesCollection.h b/Sem. 14/ShapesCollection/ShapesCollection.h index 9077c74..1430fc7 100644 --- a/Sem. 14/ShapesCollection/ShapesCollection.h +++ b/Sem. 14/ShapesCollection/ShapesCollection.h @@ -14,13 +14,15 @@ class ShapesCollection public: - //factory + //factory void addCircle(double x, double y, double radius); void addRectangle(double x1, double y1, double x3, double y3); void addTriangle(double x1, double y1, double x2, double y2, double x3, double y3); void addRhombus(double x1, double y1, double x2, double y2); void addSquare(double x1, double y2, double sideLength); + // + void printAreas(); void printPers(); @@ -30,4 +32,4 @@ public: ShapesCollection& operator=(const ShapesCollection& other); ~ShapesCollection(); -}; \ No newline at end of file +}; -- cgit v1.3.1-23-gd82d