how to access private derived class members code example
Example: can derived class access private members
//In all cases, private members of the base class remain private. Private members of the base class cannot be used by the derived class unless friend declarations within the base class explicitly grant access to them.