Some more unrelated bits and pieces...
class child : public parent
What does “public” inheritance mean?
What if we write “protected” or “private”?
“public” here says says public members of the parent class will become public members of the subclass, protected members will be protected, private will be private.
“protected” will upgrade public members of the parent class to protected members of the child class, protected and private will be unchanged
“private” says that both public and protected members of the parent will be private members of the subclass, that is, all is private. The only thing which can be public are members and functions newly declared in the subclass.
class child : virtual public parent
This exists, but is beyond the scope of this course...