When do you prefer to use composition than aggregation?

Answer Posted / dan

Use composition if parts cannot exist w/o container; Use
aggregation if parts can exist w/o container.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the modelling diagrams that are most commonly used?

717


What are the different types of UML diagrams?

838


What is the function of attribute facets in uml?

919


What are the static diagrams in UML?

776


What are the different parts of a deployment diagram?

669


Explain about realization and its relationships?

734


Mention the different kinds of modeling diagrams used?

760


Explain about the methods in UML?

801


What is collaboration diagram in UML?

781


Why analysis is a major part in object designing?

885


What are UML diagrams?

739


What is profile diagram in UML?

759


Which software is used for UML diagrams?

763


What are assertion facets used for in uml?

746


Who maintains the uml specification and how is it updated?

694