operator=

a = b; // works
a = b = c; //error: error no match....

Can you tell me why ?

1
2
3
4
5
6
7
Car Car::operator=(Car &a){
Car myCar;
myCar = a;
....
....
return(myCar);
}
Topic archived. No new replies allowed.