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

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

1.The member functions of the class generating friendship can access the members of the friend class.

2.All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship.

3. Class friendship is reciprocal to each other.

4. Class friendship is reciprocal to each other.

Posted Date:-2022-07-04 03:56:35


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!