Home > Back-end >  C a subclass of the abstract class used in the abstract class data members make mistakes is what?
C a subclass of the abstract class used in the abstract class data members make mistakes is what?

Time:09-18





This is my abstract classes defined in the subclass used in its data members will quote us the following error..
Bosses kind help me get yesterday afternoon. Now.

CodePudding user response:

Didn't see all the code, to say, pay attention to spelling errors, and whether the public inheritance,,,

CodePudding user response:

reference 1/f, the truth is right or wrong response:
didn't see all the code that is bad to say, pay attention to spelling errors, and whether the public inheritance,,,

This is a total of inheritance

CodePudding user response:

reference 1/f, the truth is right or wrong response:
didn't see all the code that is bad to say, pay attention to spelling errors, and whether the public inheritance,,,

Didn't error code I copy directly from the Internet when I add those data member directly to the subclasses can run after don't know why?

CodePudding user response:

I guess when you inherit after is to write a class child, parent, know what do you mean? Anyway, one point is on the first floor said the situation

CodePudding user response:

reference 4 floor zerozerg2006 response:
I guess when you inherit after is to write a class child: the parent, know what do you mean? Anyway, the first floor said one point this is the situation of the

I was the class child: public parent

CodePudding user response:

No mistakes won't compile, however, copied from the Internet does not represent is yes,,,,,,,,

CodePudding user response:

Is really true,, he is a tip I can't find the identifier I don't have to inherit the data directly to the members and abstract classes to define member functions in the subclass their own won't go wrong,,

CodePudding user response:

No code, no truth,,,,,

CodePudding user response:

You add me QQ1967949440 I compile the source file to you and see if I can run my this really is not absolutely yes I only need to add the error data members directly to subclass will not be an error
  • Related