DZone depends on you. Login and vote now.
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.
SaveShareSend
Tags: coldfusion, frameworks, java
Add your comment