Defining assignment
C++ treats assignment as a separate operation from copying
Assignment is a member function with the strange name of operator=
It should return a reference to the left-hand side, for consistency with built-in assignment
Previous slide
Next slide
Back to first slide
View graphic version