in private inharitance can derived class access the members of base 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.