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

In a class definition, the members declared as private are accessible

  1. only to the public functions of the class
  2. to any function in the program
  3. only to functions declared as private
  4. to all member functions of the class



Answer: 
Option a: only to the public functions of the class

Explanation Here

Post a Comment

0 Comments