Content deleted Content added
Undid revision 789420844 by 115.249.61.93 (talk) |
|||
Line 10:
This approach may be used in friendly function when a function needs to access private data in objects from two different classes.
This may be accomplished in two similar ways
*a function of global or [[namespace]] scope may be declared as friend of both
*a member function of one class may be declared as friend of another one. <source lang=Cpp>
#include <iostream>
|