Which of t ...
Site Language: English
Terms and Conditions
Which of the following statements is false in relation to friends of the class?
Any other class can be declared as a class friend
Within a class declaration, there can be any number of friend instructions
To declare a global function
as a friend of class A, it is enough to add an instruction inside the class A:
To declare a class B as a friend of class A, it is enough to add an instruction inside the class A:
friend class B;
Any function can be declared as a friend of the class
Get an explanation when it's available:
Login to learn C++
Read more about
Sign Up Now
Subscribe for future quizzes