Object Oriented Programming20805 marksPublic, private, and protected inheritance
What is the difference between public, private and protected inheritance in C++?
What is the difference between public, private and protected inheritance in C++? [5]
In C++, when a derived class inherits from a base class, an access specifier is used to control how the inherited members are accessible in the derived class and further down the hierarchy. Syntax: --- The inherited member's accessibility in the derived class is determined by the most restrictive...