How returning reference and const reference are different?

Viewed 37

The particular example could be the return type of the operator function to overload assignment operator.

const className& operator=(const className&)
className& operator=(const className&)

What is the difference between the above two?

0 Answers
Related