Question: If data members are private, what can we do to access them from the class object? Your answer: o Private data members can always be
If data members are private, what can we do to access them from the class object?
Your answer:
o Private data members can always be accessed from outside the class
o Create protected member functions to access those data members
o Create private member functions to access those data members
o Create public member functions to access those data members
o You can never access data members from the class object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
