What is the difference between public, private, and protected inheritance in C++?
public
private
protected
Member in base class : Private Protected Public
Inheritance type : Object inherited as:
Private : Inaccessible Private Private Protected : Inaccessible Protected Protected Public : Inaccessible Protected Public