In Lab 12
April 12, 2005
Today's Lab is on Inheritance
The TA will check you off at the end of the lab time.
You will create the classes for the hierarchy below:

Each class should contain:
- An employee should have a first name, last name, and Id number.
- A Hourly employee should have a wage and a number of hours worked.
-
A commission employee should have a commission rate and gross sales
- and a commission + base employee should have a base salary.
Each class should have appropriate constructors, set methods, and get methods.
Write a program that instantiates objects of each of these classes and outputs all the information associated with each object (including inherited information).
Then each time you hire a new employee you make an instance of the appropriate class. If it's all set up correctly the inheritance should fill in all the fields for each employee. So a hourly employee that is inheriting (word?spelling?) from employee will have name and ID number filled in.
Your BlueJ UML diagram should look something like this when your program is complete.

Things you should add while you have time
- Adding the employees by user input
- Create a static method in your driver that prints a menu so users can choose which type of employee to add.
- Put the program in a while loop so the user has to select a menu choice to exit the program.
- Allow users to add new sales totals.
- Add anything else that a sales manager might want to be able to use, salesreports, editing employees, etc. etc.