C++ Programming :: Objects and Classes - Discussion
Home > C++ Programming > Objects and Classes > MCQs Questions Discussion
9 / 41
Choose the correct option.
A program can directly access the_________members of a class.
Ahidden
Bprivate
Cpublic
Dboth (b) and (c)
Answer: Option (Login/Signup)
Show Explanation
we can only access public members of a class by creating an object to that class from outside the class.
Asked In ::
TRICK
we can access all members of class directly from inside a class.
we can only access public members of a class by creating an object to that class from outside the class.
Read Full Answer
Report Error
Please Login First Click Here