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

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation