Results 1 to 2 of 2

Thread: Inheritance Program

  1. #1
    Join Date
    Feb 2008
    Thanked 2 Times in 2 Posts

    Default Inheritance Program

    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.

  2. #2
    Join Date
    Mar 2008
    Thanked 19 Times in 19 Posts


    Start with a tree and come back for some help


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts