C++ MQCs with Explanation (CHAPTER 5: CLASSES AND OBJECTS

In a class, a member declared as public is accessible

  1. only to public members of the class
  2. only to member functions of the class
  3. to any function in the program
  4. without using objects of the class



Answer: 
Option c: to any function in the program

Explanation Here

Post a Comment

0 Comments