2080 4

BIT153 ยท 2080 ยท 5 marks

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]

Object Oriented ProgrammingChapter 6: Inheritance and PolymorphismPublic, private, and protected inheritance

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...