Friend function

When are we supposed to use it?
How can we declare it?


Thanks in advance.
You shouldn't use it in a well designed OO application.

Inside the class, you put "friend class soNso;" and that will allow soNso to use private/protected members/methods.
Topic archived. No new replies allowed.