Advertisements
Advertisements
Question
Which of the following is true with respect to inheritance?
Options
Private members of the base class are inherited to the derived class with private.
Private members of the base class are not inherited to the derived class with private accessibility.
Public members of a base class are inherited but not visible to the derived class.
Protected members of the base class are inherited but not visible to the outside class.
MCQ
Solution
Private members of the base class are not inherited to the derived class with private accessibility.
shaalaa.com
Is there an error in this question or solution?