diff options
1 files changed, 13 insertions, 0 deletions
| -rw-r--r-- | Sem. 13/ShapeCollection/Rectangle.h | 13 |
diff --git a/Sem. 13/ShapeCollection/Rectangle.h b/Sem. 13/ShapeCollection/Rectangle.h new file mode 100644 index 0000000..dedb22f --- /dev/null +++ b/Sem. 13/ShapeCollection/Rectangle.h @@ -0,0 +1,13 @@ +#pragma once +#include "Shape.h" + +class Rectangle : public Shape +{ +public: + Rectangle(int x1, int y1, int x3, int y3); + double getArea() const override; + double getPer() const override; + bool isPointIn(int x, int y) const override; + Shape* clone() const override; + +};
\ No newline at end of file |
