Make a class employee with a name and salary make a class


Program

Make a class Employee with a name and salary. Make a class Manager inherit from Employee. Add an instance variable, named department, of type string. Supply a method to tostring that prints the manager's name, Department and salary. Make a classs Executive inherit from Manger. Supply a method to string that prints the string "executive " followed by information stored in the manager superclass object. Supply a test program that tests these classes and methods.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Make a class employee with a name and salary make a class
Reference No:- TGS01475503

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)