Which rule will not affect the friend function?
(a) private and protected members of a class cannot be accessed from outside
(b) private and protected member can be accessed anywhere
(c) protected member can be accessed anywhere
(d) private member can be accessed anywhere
This question was posed to me by my school principal while I was bunking the class.
Enquiry is from Friends topic in section Source Files, Classes and Operator Overloading in C++ of C++