Renamed all operators beginning with underscore.

This commit is contained in:
Ivan Popivanov 2016-12-17 16:26:10 -08:00
commit 5ec5266284
4 changed files with 68 additions and 38 deletions

View file

@ -20,8 +20,12 @@ private:
double radius;
public:
Circle(double r) : radius(r) { }
Circle(double xx, double yy, double rr);
virtual double area();
virtual double perimeter();
bool operator==(const Circle & other);
bool operator!=(const Circle & other);
};
class Square : public Shape {
@ -31,4 +35,7 @@ public:
Square(double w) : width(w) { }
virtual double area();
virtual double perimeter();
bool operator==(const Square & other);
bool operator!=(const Square & other);
};