Website Summary Files Commits Branches @commit @diff @stats
path: root / Polymorphism / Rectangle.h
diff options
context:
space:
mode:
Commit495fe9ae299e81c213161d992d05cc11a403a1d7 (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-05-20 03:02:00 +0300
Committer
 GitHub <noreply@github.com>
2020-05-20 03:02:00 +0300
Files8d71f8728ddfcf86d34ec1690b144067a3e43887 /Polymorphism/Rectangle.h
Object-oriented_programming_FMI-495fe9ae299e81c213161d992d05cc11a403a1d7.tar
Object-oriented_programming_FMI-495fe9ae299e81c213161d992d05cc11a403a1d7.tar.gz
Object-oriented_programming_FMI-495fe9ae299e81c213161d992d05cc11a403a1d7.zip
Parentb7a69d6934a940bcdd8a61df3e6d1df439dc1b0a (diff)
Add files via upload
1 files changed, 11 insertions, 0 deletions
-rw-r--r--Polymorphism/Rectangle.h11
diff --git a/Polymorphism/Rectangle.h b/Polymorphism/Rectangle.h
new file mode 100644
index 0000000..7c7e3d0
--- /dev/null
+++ b/Polymorphism/Rectangle.h
@@ -0,0 +1,11 @@
+#include "Shape.h"
+class Rectangle : public Shape
+{
+public:
+ Rectangle(int x1, int y1, int x3, int y3);
+
+ double getPer();
+ double getArea();
+
+ Shape* clone();
+}; \ No newline at end of file