search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
25 views
asked Geek 15.3k points 16 41 63

1 Answer

0 votes
In the case of members protected and private, these could not be accessed from outside the same

class at which they are declared. This rule can be transgressed with the use of the friend keyword in a

class, so we can allow an external function to gain access to the protected and private members of a class.
answered Guru 39.1k points 10 21 33

Related questions

0 votes
1 answer 28 views
28 views
asked smith Geek 15.3k points 16 41 63
0 votes
1 answer 14 views
14 views
asked john Guru 27.1k points 31 50 97
0 votes
1 answer 35 views
0 votes
1 answer 46 views
46 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 49 views
...