Q:

Which of the following describes a friend class?

0

Which of the following describes a friend class?


  1. Friend class can access all the private members of the class, of which it is a friend
  2. Friend class can only access protected members of the class, of which it is a friend
  3. Friend class don’t have any implementation
  4. Friend class can’t access any data member of another class but can use it’s methods

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).Friend class can access all the private members of the class, of which it is a friend

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OOPS CONCEPT AND FEATURES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is scope of a class nested inside another cla... >>
<< Which class can have member functions without thei...