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

1
Each public member in the base class is public in the derived class
2
Each protected member in the base class is protected in the derived class
3
Each private member in the base class remains private in the base class
4
Each private member in the base class remains public in the derived class

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation