Constructor defining first name and last name


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.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Constructor defining first name and last name
Reference No:- TGS0535085

Expected delivery within 24 Hours