0

SOLVED ◇ Why Passing by Reference in Operator Overloading

I noticed that in the operator overloading function's parameters we pass by reference an other object of the same class. But why is that? why should I pass by reference and not by value.

1st Aug 2019, 4:24 PM
xaralampis_
xaralampis_ - avatar
3 odpowiedzi
0
Martin Taylor oh so i guess it has to do with performance?
1st Aug 2019, 8:11 PM
xaralampis_
xaralampis_ - avatar