Objects and Classes on C++ related Questions and Answers


Question :   Which of the following can access private data members or member functions of a class?
1. Any function in the program
2. All global functions in the program.
3. Any member function of that class.
4. Only public member functions of that class.
Answer :   3 - Any member function of that class.  

* 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