View Full Version : Inheritance Program

11-13-2008, 08:15 PM
I need to write a class titled employee. This class needs to hold data for an employee's name, ID#, and their date of hire. Then i need to write a class called production worker, that extends employee. this class will hold weather they work shift 1, or 2, and their pay rate.
After that i need to write a class called teamleader that extends production worker and this is going to hold how many training hours are needed to be a team leader, how many the employee has, and how much of a bonus a team leader gets.
This all needs to be outputted in the main program.

Also, i need to set 'get' and 'set methods in the program.

Sorry if i am not very clear with what i am trying to accomplish, its probably because i am completely lost with what i have to do.
Thanks for the help.

11-18-2008, 02:13 AM
Start with a tree and come back for some help