If I have for example two classes A and B, such that class B inherits A as follows:
A
B
class B: public A
The default type of the inheritance is private in C++.
class B:A {};
is equivalent to
class B: private A {};