Objects and Classes on C++ related Questions and Answers


Question :   Which of the following statement is correct with respect to the use of friend keyword inside a class?
1. A private data member can be declared as a friend.
2. A class may be declared as a friend.
3. An object may be declared as a friend.
4. We can use friend keyword as a class name.
Answer :   2 - A class may be declared as a friend.  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter