summaryrefslogtreecommitdiff
path: root/rectangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'rectangle.h')
-rw-r--r--rectangle.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/rectangle.h b/rectangle.h
new file mode 100644
index 0000000..3bdc8a1
--- /dev/null
+++ b/rectangle.h
@@ -0,0 +1,17 @@
+#include "forme.h"
+
+class Rectangle:public Forme{
+ private:
+ int largeur;
+ int hauteur;
+ public:
+ Rectangle(int x, int y, int l, int h);
+ ~Rectangle();
+ int getLargeur();
+ int getHauteur();
+ Coordonnee getAncrageForme();
+ void setLargeur(int l);
+ void setHauteur(int h);
+ double getAire();
+ void afficher(ostream &s);
+};