Question: Your assignment is to write some classes that wil manage a collection of employees for a company There are two types of employees. There are

 Your assignment is to write some classes that wil manage a

Your assignment is to write some classes that wil manage a collection of employees for a company There are two types of employees. There are full time employees that have a first name, last name, employee ID number and an annual salary There are part time employees that have a first name, last name, employee ID number, hours worked (in a single week) and an hourly wage. There should be a class that is responsible for the following: . Maintaining a collection of employees. Adding an employee to the collection Printing a list of all employees alphabetically by last name. It shauld print one employee per line and include last name, first name, employee ID number and either salary or hourly wage (Hint: Collections.sort() is available) Printing a single employee (specified by ID number) and the employee's weekly salary Be sure to do the following: Use inheritance and polymorphism to eliminate code duplication and to make the program extendable (i.e. there should only be a single collection of employees) Override the toString() method for any classes invalving employees rather than providing methods that simply display data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!