diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Prog2/Prakt2/geomObj/Square.h | |
| download | Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2 | |
Diffstat (limited to 'Bachelor/Prog2/Prakt2/geomObj/Square.h')
| -rw-r--r-- | Bachelor/Prog2/Prakt2/geomObj/Square.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Bachelor/Prog2/Prakt2/geomObj/Square.h b/Bachelor/Prog2/Prakt2/geomObj/Square.h new file mode 100644 index 0000000..022483b --- /dev/null +++ b/Bachelor/Prog2/Prakt2/geomObj/Square.h @@ -0,0 +1,18 @@ +#ifndef _SQUARE_H_
+#define _SQUARE_H_
+
+#include "Rectangle.h"
+
+class Square : public Rectangle
+{
+public:
+ Square();
+ Square(double);
+ virtual ~Square();
+ virtual double getCircumference();
+ virtual double getArea();
+private:
+ const double length;
+};
+
+#endif //_SQUARE_H_
|
