You will be creating a Payroll which will use Inheritance, Exceptions, and Aggregation. A GUI is optional.
Create a project folder which will be used to test your final project. It could be called something like PayrollManager. Create the following classes and interfaces:
1. Employee Class implements Serializable
private String name; // Employee name
private String employeeNumber; // Employee number
private String hireDate; // Employee hire date
Default constructor puts null or 0 as appropriate
Initializer constructor initializes the private data and throws an InvalidEmployeeNumber Exception
write sets for all the private data and for the setEmpNumber throw an InvalidEmployeeNumber Exception if the String does not parse to an int or the number is out of the 0 to 9999 range
Write the toString method to return the data.
Write a main method within this class to test the Employee with valid and invalid data using try catch.