Which of the following is not true in case of public inheritance in C++?

KVS TGT/PGT 2018Kendriya Vidyalaya Sangathan 2018

Which of the following is not true in case of public inheritance in C++?

  1. A.

    Each public member in the base class is public in the derived class.

  2. B.

    Each protected member in the base class is protected in the derived class

  3. C.

    Each private member in the base class remains private in the base class.

  4. D.

    Each private member in the base class remains public in the derived class.

Attempted by 667 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bpsc

Loading lesson…