A
Aire
To implement the '+' overloading, the type of return value could be either
"Class1" or "Class1&".
Class1& Class1:perator+(const Class1& a, const Class1& b){ }
Class1 Class1:perator+(const Class1& a, const Class1& b){ }
What are the differences implied by the two return types?
Thanks!
"Class1" or "Class1&".
Class1& Class1:perator+(const Class1& a, const Class1& b){ }
Class1 Class1:perator+(const Class1& a, const Class1& b){ }
What are the differences implied by the two return types?
Thanks!