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...



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.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here