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:

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