Give a definition for a class TitledEmployee that is a derived class of the base
class SalariedEmployee given in Display 15.5. The class TitledEmployee
has one additional member variable of type string called title. It also
has two additional member functions: getTitle, which takes no arguments
and returns a string; and setTitle, which is a void function that takes
one argument of type string. It also redefines the member function
setName. You do not need to give any implementations, just the class
definition. However, do give all needed #include directives and all using
namespace directives. Place the class TitledEmployee in the namespace
employeessavitch.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here