Create a class named employee and its 3 subclasses named


1. Design and implement a Employee class along with 3 subclasses using the following guidelines:

Create a class named Employee and its 3 subclasses named Contractor, HourlyEmployee, FullTimeEmployee. The class Employee hold first name and last name information, and defines two methods, respectively computing pay and vacation hours, that needs to be overwritten in the subclasses. Contractors and hourly employees do not accumulate vacation hours, and have an hourly rate and a number of worked hours; for hourly employee, a deduction of 6.2% made used for social security. FullTimeEmployee have just a fixed pay check.

Each class must have a constructor defining first name and last name. You need to define the data fields specific to each class, and provide the corresponding accessors and modifiers.

2. Finally, create a Java test class. In your test class you should at a minimum: a) Construct 200 instances of each subclass, b) set up the corresponding characteristics, c) print the name of your employee d) print the pay amount and the accumulated vacation amount.

3. Your programs should compile and run without errors.

Deliverables include Java files for the Employee class and each subclass, and a Java test file.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a class named employee and its 3 subclasses named
Reference No:- TGS01090133

Expected delivery within 24 Hours