Let $A$ be the base class in $\text{C++}$ and $B$ be the derived class from $A$ with protected inheritance. Which of the following statement is false for class $B$?
Answer D,
Function of Derived class can access protected or Public base class data but Object of Derived class cannot access any member of Base class directly.
So it cannot access any members directly whether it is public protected or private.
64.3k questions
77.9k answers
244k comments
80.0k users