When I write
class Derived : Base { };
This compiles. (I sort of assumed that one needs to specify it as being one of public
, protected
, or private
inheritance, which has consequences about the visibility of members.
Which one of the three is it if I do not specify?