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?

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


Please Help Members By Posting Answers For Below Questions

Is Visio a UML tool?

984


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

810


What relations are there between the Class Diagrams and Domain models. 

2003


Explain about structural diagrams?

886


Who maintains the uml specification and how is it updated?

853


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

789


Name some of the roles that are played by the packages, modules and wrappers?

1366


What are the types of event?

933


What are various kinds of invariants and rulesets used in uml?

866


Define link and association?

925


What are the different parts of a deployment diagram?

842


Explain the types of diagrams in UML.

998


Explain about executable UML?

1044


What are the parts of a deployment diagram?

939


In which phases of Unified process is project deployement dealt with?

2497