Find the Error in the Class Circle

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 = operator
			void Circle = (Circle &right)
		{
			diameter = right.diameter;
			centerX = right.centerX;
			centerY = right.centerY;
		}
Any ideas?
The following link has a section called "Copy Assignment", which should help you with operator overloading:
http://www.cplusplus.com/doc/tutorial/classes2/
Topic archived. No new replies allowed.