diff options
Diffstat (limited to 'Bachelor/Prog2/Prakt2/geomObj/Rectangle.h')
| -rw-r--r-- | Bachelor/Prog2/Prakt2/geomObj/Rectangle.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Bachelor/Prog2/Prakt2/geomObj/Rectangle.h b/Bachelor/Prog2/Prakt2/geomObj/Rectangle.h new file mode 100644 index 0000000..586110a --- /dev/null +++ b/Bachelor/Prog2/Prakt2/geomObj/Rectangle.h @@ -0,0 +1,19 @@ +#ifndef _RECTANGLE_H_
+#define _RECTANGLE_H_
+
+#include "Shape.h"
+
+class Rectangle : public Shape
+{
+public:
+ Rectangle();
+ Rectangle(double,double);
+ virtual ~Rectangle();
+ virtual double getArea();
+ virtual double getCircumference();
+private:
+ const double sideA;
+ const double sideB;
+};
+
+#endif //_RECTANGLE_H_
|
