Hi, I'm learning the OOP of C++, and the book mention friendship function. From what I understand from the explanation and implementation in the book, friend function is used for operator overloading. So, my questions are:
1. Besides the purpose of overloading the operators, isn't the friend function and the member function the same? By this, I mean that instead of create a friend function, could I just create a member function to do the same job.
2. Is there other usage for the friend function?
Thanks for all the inputs.