Loading practice questions
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
Explanation:
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.