What is protected inheritance?



What is protected inheritance?..

Answer / Rajeev Kumar

Protected inheritance is a type of inheritance in C++ that allows derived class members to be protected, providing an access level between public (fully accessible) and private (not accessible outside the class). Protected members can be accessed by any member function of the derived class or its derived classes, but not by other functions outside the class hierarchy.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are c++ storage classes?

1 Answers  


Explain abstraction.

1 Answers  


what you know about c++?

1 Answers   IBS,


Define a conversion constructor?

1 Answers  


Can member functions be private?

1 Answers  


Explain the static member function.

1 Answers  


Explain Memory Allocation in C/C++ ?

1 Answers   Infosys,


What are the four main data types?

1 Answers  


What are the different types of polymorphism?

3 Answers  


Define the process of handling in case of destructor failure?

1 Answers  


what do you mean by volatile variable?

1 Answers  


How does throwing and catching exceptions differ from using setjmp and longjmp?

1 Answers  


Categories