Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


When do you prefer to use composition than aggregation?

Answers were Sorted based on User's Feedback



When do you prefer to use composition than aggregation?..

Answer / 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

When do you prefer to use composition than aggregation?..

Answer / 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

When do you prefer to use composition than aggregation?..

Answer / abdul wahab

when madam says dear student use compositon we use
aggregation and when madam says use compostion we use
compositons....................

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More UML Interview Questions

What are boundary, entity and control classes?

0 Answers  


How do we represent private, public and protected in class diagrams?

0 Answers  


What is the difference between responsibility-driven and data-driven approaches?

0 Answers  


How does elaborating software requirements lead to inconsisteencies!

0 Answers   UCSI,


Explain the different elements of a Use Case?

0 Answers  


How many UML diagrams are expected or considered to be enough to fulfill the requirements of a project and why?

0 Answers   Lovely Professional University,


What are the types of UML diagrams?

0 Answers  


What shall I go for Package Diagram?

0 Answers  


Why do we need UML diagrams?

0 Answers  


Detail the meaning of association?

0 Answers  


What are the process workflows that evolve through these phases?

0 Answers  


Explain about static diagrams?

0 Answers  


Categories