Must take void overloading operator !

I though that overloading an operator when It is a member of a class what return in a member of the class but overloading this operator ! the compiler says that It must return void...

1
2
3
4
5
6
7
8
9
10
11
12
13
class arithmetic{
public:
	int a;
	int b;
	bool Z;
	bool Y;
	arithmetic () {};
	arithmetic(int x,int y) : a(x),b(y){};
	arithmetic(bool x,bool y): a(true),b(false){};

.....
....
arithmetic operator!(const arithmetic& param);
Resolved: It cant take an argument....
Topic archived. No new replies allowed.