Sail E0 Webinar
Question

Which rule will not affect the friend function?


Options:
A .  private and protected members of a class cannot be accessed from outside
B .  private and protected member can be accessed anywhere
C .  both a & b
D .  None of the mentioned
Answer: Option A

Friend is used to access private and protected members of a class from outside the same class.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers