diff options
1 files changed, 11 insertions, 0 deletions
| -rw-r--r-- | Polymorphism/Rectangle.h | 11 |
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 |
