Multiple choice

The protected access specifier is very useful in ___________ inheritance.

  1. simple

  2. multiple

  3. multilevel

  4. hierarchical

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

The protected access specifier is very useful in multilevel inheritance because the protected member of super class A can be accessed by the subclass C in the following way. A(Super Class)$\rightarrow$ B(Subclass of A) $\rightarrow$C(Subclass of B)