When do you prefer to use composition than aggregation?
Answer Posted / rajendra tambat
when you sure that the creation and destruction of part
class is in control of whole class you will use composition
where as the part can exist without whole class you use
aggrigation.
in compositition you will create the object of part as a
member variable
in aggrigation you will hold the reference to the part
class in whole class
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is Composite Structure Diagram in UML?
Who maintains the uml specification and how is it updated?
What are the types of event?
What do you understand by relationships in uml?
What is the best software for UML diagrams?
What is a communication diagram in UML?
What is elaboration?
Explain about structural diagrams?
Is Visio a UML tool?
what the latest software develoment Methodologies?
How are the diagrams divided in UML?
What are the roles played by modules in uml?
What is static modeling and dynamic modeling in UML?
What are the features of UML?
What is UML Architecture?