Multiple choice

Which of the following members of base class are accessible to the derived class members during inheritance?

  1. Private and Public

  2. Protected and Public

  3. Private and Protected

  4. Static and Public

  5. Static and Protected

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

The protected and public members of a base class can be accessed from the derived class.