«« Next » « Previous
«« Next » « Previous

Link Details

DZone depends on you. Login and vote now.
Link 87672 thumbnail

By danwilson
via briankotek.com
Published: Jun 17 2008 / 15:43

Christopher R contacted me through my contact form to ask about object composition. To reiterate, composition models a "has-a" relationship between objects, as opposed to an "is-a" relationship which is typically done through inheritance or interface implementation. However, Christopher seems to be working with two different kinds of objects here: Singletons and business objects. How you handle the composition can depend on the kind of object you are dealing with and what they are meant to do.
  • 8
  • 0
  • 916
  • 300

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)