summaryrefslogtreecommitdiff
path: root/carre.cpp
blob: 1d0ad4488c451e9c99f6a6e7f6c4d52438007f1d (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=" << getAire()
      << ")\n";
};