Home »
MCQs »
OOPs MCQs
A non-member function cannot access which data of the class?
22. A non-member function cannot access which data of the class?
- Private data
- Public data
- Protected data
- All of the above
Answer: A) Private data
Explanation:
A member function can access private data of the class but a non-member function cannot do that.