0 votes 0 votes 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$? Member function of class $B$ can access protected data of class $A$ Member function of class $B$ can access public data of class $A$ Member function of class $B$ cannot access private data of class $A$ Object of derived class $B$ can access public base class data Others ugcnetcse-dec2019-paper2 + – soujanyareddy13 asked May 12, 2021 edited May 25, 2021 by soujanyareddy13 soujanyareddy13 1.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 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. august54 answered Jun 30, 2021 august54 comment Share Follow See all 0 reply Please log in or register to add a comment.