Can Pointers To Object Access The Private Members Of The Class #1163
Can pointers to object access the private members of the class?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Assigning Object, Pointer to Objects, Passing and Returning Object - OOPs MCQ: Pointer to Objects - Quiz No.1.
Can pointers to object access the private members of the class?
Yes, always
Yes, only if it is only pointer to object
No, because objects can be referenced from another objects too
No, never