Which of the statements is true in a protected derivation of a derived class…

PYQ RPSC Programmer 2013

Which of the statements is true in a protected derivation of a derived class from a base class ?

  1. A.

    Private members of the base class become protected members of the derived class

  2. B.

    Protected members of the base class become public members of the derived class

  3. C.

    Public members of the base class become protected members of the derived class

  4. D.

    Protected derivation does not affect private and protected members of the derived class

Attempted by 2 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…