cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Friend function
Friend function
Jul 1, 2008 at 10:46pm UTC
cjzheng
(5)
When are we supposed to use it?
How can we declare it?
Thanks in advance.
Jul 1, 2008 at 11:53pm UTC
Zaita
(2770)
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.