Correct and complete the class Circle. Then I also have to include a small program that uses the class in Object-Oriented format. I can't find the errors and I don't know how to complete it. Any ideas?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
class Circle
{
private:
double diameter;
int centerX;
int centerY;
public:
Circle(double d, int x, int y)
{
diameter = d; centerX = x; centerY = y;
}
Overloaded = operatorvoid Circle = (Circle &right)
{
diameter = right.diameter;
centerX = right.centerX;
centerY = right.centerY;
}