Results 1 to 2 of 2
  1. #1
    Agbaka27 is offline Member
    Join Date
    Jul 2013
    Posts
    2
    Rep Power
    0

    Question Need help rewriting a program using Composition rather than inheritance

    I have tried all I can to rewrite Exercise 9.3 page 393 of the 9th edition. I cannot figure it out, can someone help me please.
    Class BasePlusCommissionEmployee of the CommissionEmployeeBasePlusCommissionEmployee hierarchy to use composition rather than inheritance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Need help rewriting a program using Composition rather than inheritance

    Closed as a duplicate of Help

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Composition and Inheritance
    By BeyondWorldsEnd in forum New To Java
    Replies: 3
    Last Post: 01-08-2012, 10:19 AM
  2. Change program written with inheritance to composition
    By subiedude101 in forum New To Java
    Replies: 1
    Last Post: 03-21-2011, 02:14 AM
  3. GUI AND INHERITANCE program help
    By sssss in forum New To Java
    Replies: 1
    Last Post: 01-19-2011, 06:57 PM
  4. Composition vs inheritance
    By mindus in forum Advanced Java
    Replies: 3
    Last Post: 09-27-2010, 07:41 AM
  5. composition Vs Inheritance
    By mindus in forum New To Java
    Replies: 1
    Last Post: 09-26-2010, 07:53 PM

Posting Permissions

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