Q:

If data members are private, what can we do to access them from the class object?

0

If data members are private, what can we do to access them from the class object?


  1. Create public member functions to access those data members
  2. Create private member functions to access those data members
  3. Create protected member functions to access those data members
  4. Private data members can never be accessed from outside the class

All Answers

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

 (a).Create public member functions to access those data members

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

total answers (1)

OBJECT ORIENTED PROGRAMMING OOPS CONCEPT AND FEATURES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
While using encapsulation, which among the followi... >>
<< Which among the following best describes encapsula...