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 is the need of UML diagrams?

549


How would you define architecture?

604


Why is it required to have an abstraction layer in uml?

461


What is Association and its types?

556


Explain about the difficulties of interchange format of UML?

649






Difference between Activity and Sequence Diagram?

574


What is package diagram in UML with example?

538


Why analysis is a major part in object designing?

666


What are the static diagrams in UML?

573


What is modeling? What are the advantages of creating a model?

565


What are the basic notational elements which can make up a diagram?

560


What are sequence diagrams in UML?

546


What is the difference between rely clause and guarantee?

525


What is the difference between uses and extends?

536


What are UML Messages?

543