i need help plzzzzz

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keem2k8
    New Member
    • Feb 2008
    • 1

    i need help plzzzzz

    I have to create the classes in the inheritance hierarchy of the figure below. An Employee should have a first name, last name and social-security number. In addition, a SalariedEmploye e should have a weekly salary; an HourlyEmployee should have a wage and a number of hours worked; a CommissionEmplo yee should have a commission rate and gross sales. 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 the inherited information).

    can someone help me?
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Originally posted by keem2k8
    I have to create the classes in the inheritance hierarchy of the figure below. An Employee should have a first name, last name and social-security number. In addition, a SalariedEmploye e should have a weekly salary; an HourlyEmployee should have a wage and a number of hours worked; a CommissionEmplo yee should have a commission rate and gross sales. 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 the inherited information).

    can someone help me?
    Sorry we can not help you do your homework. The first thing you need to do is what will the class(es) contain. That is the values.

    nomad

    Comment

    • hollywood115
      New Member
      • Feb 2008
      • 16

      #3
      lol thats hilarious... i had the exact same assignment a few years back. lol.
      i think i still have it.
      anyways... if ur still stuck in a little while ill try and help out. its not very hard, u should figure it out in a little bit.


      Originally posted by keem2k8
      I have to create the classes in the inheritance hierarchy of the figure below. An Employee should have a first name, last name and social-security number. In addition, a SalariedEmploye e should have a weekly salary; an HourlyEmployee should have a wage and a number of hours worked; a CommissionEmplo yee should have a commission rate and gross sales. 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 the inherited information).

      can someone help me?

      Comment

      • BigDaddyLH
        Recognized Expert Top Contributor
        • Dec 2007
        • 1216

        #4
        The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

        Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

        Then when you are ready post a new question in this thread.

        MODERATOR

        Comment

        Working...