<<< Inheritance example | Index | protected class members >>> |
Parents are oblivious to existence of children.
private members of parent are not visible to children.
New protection level: protected
protected members of parent are visible to children, but not visible outside of the hierarchy.
Children can override member functions of parents,
however, parent functions are still available via explicit scope qualification (this is very useful).
<<< Inheritance example | Index | protected class members >>> |