Question 41Asked in UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)A member function can always access the data in ______ , (in C++)
- Athe class of which it is member
- Bthe object of which it is a member
- Cthe public part of its class
- Dthe private part of its class
Show answerHide answer
Correct answer: (A) the class of which it is member
Explanation
A member function can always access all the data (public, private and protected) of the class of which it is a member.