Multiple choice

Derived class can access _______ members

  1. only public

  2. private and public

  3. only protected

  4. public and protected

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

Derived classes can access both public and protected members of the base class. Public members are accessible everywhere, while protected members are accessible within the class and its derived classes. Private members are inaccessible to the derived class, making options A, B, and C incorrect.