How to add two seperate objects overloading the operator+ function? C++
- by lampshade
I made a post earlier but the information I got was wrong.
How can I add two seperate objects?
given that a, b and c are class objects of A, B and C
then a = b + c, should invoke the operator+ overloaded operator.
But lets say that I need to access private members to add the data.