Why does operator = return *this?
问题 Say I want to override the operator = so I can do something like Poly p1; // an object representing a polynomial Poly p2; // another object of the same type p2 = p1; // assigns all the contents of p1 to p2 Then in my implementation of the operator = , I have something like this: Poly& Poly::operator=(const Poly &source) { // Skipping implementation, it already works fine… return *this; } Don't mind the implementation, it already works fine. My concern is that what happens when you return