Multiple choice

Which of the following types of inheritance is used in a class when the public members of a base class become the private members of the derived class?

  1. Public inheritance

  2. Private inheritance

  3. Protected inheritance

  4. Public protected inheritance

  5. Single inheritance

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

This type of inheritance is used in a class when the public members of a base class become the private members of the derived class.