diff options
1 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | Polymorphism/Figures/Triangle.hpp | 4 |
diff --git a/Polymorphism/Figures/Triangle.hpp b/Polymorphism/Figures/Triangle.hpp index 5ac5a35..5d16111 100644 --- a/Polymorphism/Figures/Triangle.hpp +++ b/Polymorphism/Figures/Triangle.hpp @@ -1,5 +1,7 @@ +#pragma once
+
#include "Figure.hpp"
-class Triangle
+class Triangle : public Figure
{
public:
Triangle(int x1, int y1, int x2, int y2, int x3, int y3) :Figure(3)
|
