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