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 / naveen sisupalan

Composition is a stronger form of aggregation. If you are
sure that the life of the part is managed entirely by the
whole then you can go for composition. Without whole, the
part can't exist also.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a good interface?

1046


What's the main difference between arraylist / hashmap and vector / hashtable?

1140


How do I make sure that an object is released in code such as a connection or file object?

1127


What is the benefit of Composition over Inheritance?

1061


What are the properties that are defined in an object model?

1031


Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?

1218


What is the default access modifier in a class?

1070


Explain method overriding.

1143


What are the features of encapsulation ?

1038


What is operator overloading?

1442


What are a base class, subclass, and superclass?

1048


What is the significance of encapsulation?

1071


What do you mean by abstract classes?

1151


Do we require a parameter for constructors?

1075


Explain about abstraction?

1141