Friend function: Difference between revisions

Content deleted Content added
Revert to revision 794346179 dated 2017-08-07 12:45:52 by 2405:204:A10D:5A19:8533:6232:C234:C4DC using popups
Tags: Mobile edit Mobile web edit
Line 29:
private:
int b;
public:
Foo(): b(6) {}
friend void show(Bar& x, Foo& y); // declaration of global friend
friend void Bar::show(Bar& x, Foo& y); // declaration of friend from other class
};