anyone have any idea what this error message could mean?
I have a class Person that inherits from another class Name.
Person class does not have a constructor. Name has a constructor.
Im not sure if im doing it correclty..
Name constructor takes a few parameters like so..
Code:
Name(char * firstname, char * middlename, char * surname)
Wheni create a new person object i want to do something like
Code:
Person jack("jack","ant","smith");
error: base 'Person' with only non-default constructor in class
without a constructor
?