
- Forum
- Programming Talk
- C and C++
- Access Specifier
Access Specifier
This is a discussion on Access Specifier within the C and C++ forums, part of the Programming Talk category; In C++ can I declare a friend function as private. Or is it that I can declare the friend function ...
-
Access Specifier
In C++ can I declare a friend function as private. Or is it that I can declare the friend function only as public?
-
03-13-2007, 11:07 PM #2
- Join Date
- Apr 2006
- Answers
- 124
In the concept of Friend functions the Friend declarations generally neither refer to private nor to public functions. I think this would clarify your query.
-
sure friend functions can be referred as private. Even though they are referred as private they can be defined in outside of a class.
-
12-25-2010, 07:55 AM #4
- Join Date
- Dec 2010
- Answers
- 32
its doesn't matter where you declare friend function just the thing is that you need to declare in each class where you want to use the private part of any class..
-
Sponsored Ads

Reply With Quote





