adspace
Answer Posted / 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 View All Answers