dcsimg
composition
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, February 8, 2010 05:20 AM

plz tell me what is composition? and some examples.

Re: composition

Posted By:   Anonymous  
Posted On:   Wednesday, February 24, 2010 11:07 AM

Composition models a strong "is a part of" relationship.


"A finger is a part of a hand" - Hand is your composite object, finger is a component of hand.


The relationship is "strong" because the component cannot exist outside of the composite, and destruction of the composite implies destruction of the component. Ie cut off your hand, you also cut off your finger.

About | Sitemap | Contact