Q:

Can pointers to object access the private members of the class?

0

Can pointers to object access the private members of the class?


  1. Yes, always
  2. Yes, only if it is only pointer to object
  3. No, because objects can be referenced from another objects too
  4. No, never

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(d).No, never

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING - OBJECTS AND POINTERS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Is name of an array of objects is also a pointer t... >>
<< Pointer to a base class can be initialized with th...