A non-member function cannot access which data of the class?

22. A non-member function cannot access which data of the class?

  1. Private data
  2. Public data
  3. Protected data
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.