why does the derived class inherit the private members of the base class?
I know that the derived class can't access the private members of the base class, so why does the derived class inherit the private members of the base class? Is there any case that it is useful?
Thanks!
Aucun commentaire:
Enregistrer un commentaire