Multiple choice

A protected member inherited in a public mode becomes _____________.

  1. public

  2. private

  3. protected

  4. none of these

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

In C++ inheritance, a protected member of the base class remains protected in the derived class when inherited in public mode. Public inheritance preserves the access level of protected members - they stay protected, not public. Private inheritance would make them private, and protected inheritance would keep them protected.