New course! Every coder should learn Generative AI!
Try a free lesson0
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.
1 Answer
0
Martin Taylor oh so i guess it has to do with performance?