Home > Back-end >  The derived class object cannot access base class members of the public (public inheritance) is my i
The derived class object cannot access base class members of the public (public inheritance) is my i

Time:10-01

Given three classes a, b, c, their relationship is: a derived derived b c (all public inheritance), which is a is grandpa, b is dad, c is son,

Defined in the main function of a class c object, the object can not access the class a member of the public, such as function, why will appear this kind of circumstance?

CodePudding user response:

It is I was wrong

CodePudding user response:

I should think so

CodePudding user response:

How can I delete

CodePudding user response:

You have to, we can delete but out of conscience, I say what you should be no problem
  • Related