Q:

How can you make the private members inheritable?

1

How can you make the private members inheritable?


  1. By making their visibility mode as public only
  2. By making their visibility mode as protected only
  3. By making their visibility mode as private in derived class
  4. It can be done both by making the visibility mode public or protected

All Answers

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

 (d).It can be done both by making the visibility mode public or protected

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

total answers (1)

OBJECT ORIENTED PROGRAMMING INHERITANCE AND ITS TYPES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How many types of inheritance are possible in C++?... >>
<< The private members of the base class are visible ...