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

What are the different approaches to store knowledge?

898


Define three type of design patterns?

999


What are the three types of modeling in UML?

1024


What is unified modeling language (uml)?

906


What is Composite Structure Diagram in UML?

958


What are the advantages of using UML?

1029


What is sdlc (software development life cycle)?

1043


What are the different steps involved in object oriented analysis?

920


What do you mean by focus of control?

1041


What are class diagrams in UML?

1075


What is static modeling and dynamic modeling in UML?

1036


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

1401


What are sequence diagrams in UML?

939


What is functional requirement?

990


Detail the meaning of association?

930