Let š“ be the base class in C++ and šµ be the derived class from š“ with…

UGC NET 2019

LetĀ š“Ā be the base class inĀ C++Ā andĀ šµĀ be the derived class fromĀ š“Ā with protected inheritance. Which of the following statement is false for classĀ šµ?

  1. A.

    Member function of classĀ šµĀ can access protected data of classĀ š“

  2. B.

    Member function of classĀ šµĀ can access public data of classĀ š“

  3. C.

    Member function of classĀ šµĀ cannot access private data of classĀ š“

  4. D.

    ObjectĀ of derived classĀ šµĀ can access public base class data

Attempted by 426 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…