If a function is friend of a class, which one of the following is wrong?

Question:
If a function is friend of a class, which one of the following is wrong?

1.A function can only be declared a friend by a class itself.

2.Friend functions are not members of a class, they are associated with it.

3.Friend functions are members of a class.

4.It can have access to all members of the class, even private ones.

Posted Date:-2022-07-04 03:55:45


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!