Multiple choice

In which of the following inheritance, objects of derived class cannot access public members of base class?

  1. Public inheritance

  2. Multiple inheritance

  3. Private inheritance

  4. Multilevel inheritance

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In this mode of inheritance, public members of base class cannot be inherited as it becomes private to the derived class.