In the code sample, the keywords private and protected are not capitalized.
You use private inheritance to inherit the implementation of a class.
You use protected inheritance when the base class is incomplete and needs its implementation completed in the derived class. The derived class in this case used to be called a mix-in class.
Comment