Renamed all operators beginning with underscore.
This commit is contained in:
parent
dc137d14c3
commit
5ec5266284
4 changed files with 68 additions and 38 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue