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