I have derived two classes (employee and client) from a base class (person, containing members lastName and firstName and functions string getlastName void setlastName). My goal is to be able to modify an employees name using the functions from base class. i.e.
class person
{
getname;
setname();
cout<<"input name"<<endl;
cin>>name;
}
class employee : public person
void Employee::newEmployee()
{
setname; //here is where I am trying to modify the attribute name, using functions from the base class.
}