ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
If private members are to be called outside the class, which is a good alternative?
Correct Answer: C — Call a public member function which calls private function
The private member functions can be accessed within the class. A public member function can be called which in turn calls the private member function. This maintains the security and adheres to the rules of private members.