summaryrefslogtreecommitdiff
path: root/carre.cpp
blob: 627eb91101bc91b1f6d83da3c54e103f526e37e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "carre.h"

Carre::Carre(int x, int y, int cote) : Rectangle(x, y, cote, cote) {
};

Carre::~Carre() {
};

void Carre::afficher(ostream &s) {
    s << "Carre(x=" << getAncrage().x
      << ", y=" << getAncrage().y
      << ", c=" << getLargeur()
      << ", a=" << aire()
      << ")\n";
};