Operator overloading complex number

void add(Complex &x) {
real += x.real;
complex += x.img
}
here is the x.real gives me the data of seconds objects and real have first objects data ?

@Vikaspal yes. As add is the member function so real will have the value of the object through which it is called.
If this resolves your doubt mark it as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.