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 |
What are c++ storage classes?
Explain abstraction.
what you know about c++?
Define a conversion constructor?
Can member functions be private?
Explain the static member function.
Explain Memory Allocation in C/C++ ?
What are the four main data types?
What are the different types of polymorphism?
Define the process of handling in case of destructor failure?
what do you mean by volatile variable?
How does throwing and catching exceptions differ from using setjmp and longjmp?