C++
Which of t ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
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
f
as a friend of class A, it is enough to add an instruction inside the class A:
friend f;
Explanation
Get an explanation when it's available:
Subscribe
class
friend
friend function
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
++
Quiz
Login to learn C++
or
Read more about
C++ Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment