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);