C++ Programming :: Objects and Classes - Discussion
10 / 41
The program can access the private members of a class
Adirectly
Bonly through other private members of the class
Conly through other public members of the class
Dnone of these
Show Explanation
we can only access public members of a class by creating an object to that class from outside the class.
The public members in turn can have access to the private members of the class.
So, The program can access the private members of a class only through other public members of the class.
Asked In ::
we can only access public members of a class by creating an object to that class from outside the class.
The public members in turn can have access to the private members of the class.
So, The program can access the private members of a class only through other public members of the class.
Read Full Answer
Report Error
Please Login First Click Here