-
Which rule will not affect the friend function?
-
- private and protected member can be accessed anywhere
- protected member can be accessed anywhere
- private and protected members of a class cannot be accessed from outside
- All of above
- None of these
Correct Option: C
Friend is used to access private and protected members of a class from outside the same class.