Question: Create a class called Employee whose objects are records for an employee. This class will be a derived class of the base class Person. An
Create a class called Employee whose objects are records for an employee. This class will be a derived
class of the base class Person. An employee record has an employee's name (inherited from the class
Person), an annual salary represented as a single value of type double, a year the employee started work
as a single value of type int and a national insurance number, which is a value of type String.
Your class should have a reasonable number of constructors and accessor functions, as well as a print
function. Write a driver to fully test your class definition.
Step by Step Solution
3.45 Rating (148 Votes )
There are 3 Steps involved in it
Solution Code and output include include include using namesp... View full answer
Get step-by-step solutions from verified subject matter experts
