The actual error is :
48:29: error: no 'bool Undergraduate::authStu()' member function declared in class 'Undergraduate' |
Always quote the entire error verbatim, not your interpretation of it.
So, should you delete the function lines 48 to 61, as you already have the same code on lines 94 to 108?
Or did you want to specialise that function - as you have it as
virtual
in the base class? If so, then it needs to be in the Undergraduate class definition with the
override
keyword.
By the way, the get functions should be marked
const
. Make sure you are consistent with this, as a
const
function is seen as a different function even though it has the same parameters.
The parameters should be
const
as well, and
std::string
should be passed by reference.
Functions like
authStu
shouldn't print output.
Rather than a function like
setInfo
, use the member intialise list like you have on line 38. Do that for all your constructors. Make sure to initialise all the members in the same order as in the class definition.
Have fun !! :+)