July2016 cs Q13

0. Which one of the following is correct, when a class grants friend status to another class?

  • Option : B
  • Explanation :
  • When a class grants friend status to another class then all member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship.
  • The member functions of the class generating friendship can access the members of the friend class.Incorrect statement.
  • Class friendship is not reciprocal to each other.
  • So, option (B) is correct.
Cancel reply

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


Cancel reply

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