Q:

If private members are to be called outside the class, which is a good alternative?

0

If private members are to be called outside the class, which is a good alternative?


  1. Call a public member function which calls private function
  2. Call a private member function which calls private function
  3. Call a protected member function which calls private function
  4. Not possible

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(a).Call a public member function which calls private function

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING MEMBER FUNCTIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
A private function of a derived class can be acces... >>
<< Which function among the following can’t be acce...