

MCQOPTIONS
Saved Bookmarks
1. |
If class B inherits class A privately. And class B has a friend function. Will the friend function be able to access the private member of class A? |
A. | Yes, because friend function can access all the members |
B. | Yes, because friend function is of class B |
C. | No, because friend function can only access private members of friend class |
D. | No, because friend function can access private member of class A also |
Answer» D. No, because friend function can access private member of class A also | |