• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
advice on inheritance??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

advice on inheritance??


  • Subject: advice on inheritance??
  • From: Theodore Petrosky <email@hidden>
  • Date: Sun, 11 May 2014 16:02:12 -0400

I am starting a project. I need to manage assets (people). But people will be both a User of the system and the managed asset.

Also a person could be an employee of a company that needs to manage the assets.

So I thought I would create a person class and do inheritance.

a worker inherits from a person
a supervisor inherits from a person

Am I going nuts and too deep with inheritance? Would it be easier to have a single entity person that has booleans to identify workers or supervisors. I mean a person could be both a worker and supervisor.

maybe just talking about it will help me think if through.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: advice on inheritance??
      • From: Timothy Worman <email@hidden>
  • Prev by Date: Re: Large response: Apache adaptor changing content-length header to Integer.MAX_VALUE
  • Next by Date: Re: advice on inheritance??
  • Previous by thread: Re: Starting second instance=app not available
  • Next by thread: Re: advice on inheritance??
  • Index(es):
    • Date
    • Thread