Create necessary classes and a Java application to use and test these classes.
- Use the Employee as the base class:
- Use Inheritance to create the following additional classes
- Create Secretary class that holds following additional attributes:
- Office Location (i.e. SCC104)
- Status (i.e. Retired, Active, Assigned,)
- Create a Supervisor class with the following additional attributes
- Secretary (Instance of Secretary)
- Department Name
- Number of Employees assigned
Create Constructors -
- A minimum of 3 constructors including default constructor
- Getters
- Setters
- Helper methods
- toString() method
- equals() method
Create an array of employees which contains
- Employee
- Secretary
- Supervisor
Please include a UML diagram with the code.