If data members are private, what can we do to access them from the class object?
(a) Create public member functions to access those data members
(b) Create private member functions to access those data members
(c) Create protected member functions to access those data members
(d) Private data members can never be accessed from outside the class
I have been asked this question in an interview.
The question is from Encapsulation in portion OOPs Concept & Features of Object Oriented Programming