<<< | Index | >>> |
Sometimes two classes need to work together.
Sometimes a function needs to be global, but also needs to have access to internal data.
For example:
class Point { friend class Window; friend void print_point( Point* p ); friend void circle::set_radar_radius( Point* p ); //... };
<<< | Index | >>> |