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

Explain about static diagrams?

731


Explain about composition?

786


Does Visio Standard have UML?

765


What are the goals of UML?

919


Detail whether UML can be used as a programming language?

712


What are the roles played by packages in uml?

693


What is contract?

808


What are the elements which are utilized in the state chart diagram?

684


How are the diagrams divided in UML?

822


Every object has : state, behavior and identity - explain

2270


How are the diagrams divided?

1019


What do you mean by focus of control?

786


What is deployment diagram in UML?

798


How do you create a use case diagram in UML?

808


What is state machine diagram in UML?

925