Create a class called Employee whose objects are records for an employee. This class will be a
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: