







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








Operator Overloading
Member Functions
member must be a friend if it needs to access non- public data members of that class.
operand of type ostream. Therefore, it must be a non-member function. Also, it may require access to the private data members of the class. Thus, it needs to be a friend function for that class.
Binary Overloaded Operators -- Member Functions