When do you prefer to use composition than aggregation?



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

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

More OOAD Interview Questions

What is abstract method?

0 Answers  


Explain what is single and multiple inheritance?

0 Answers  


Can you create an instance of an abstract class?

0 Answers  


What do you mean by operator overloading?

0 Answers   BirlaSoft,


Define Destructor?

0 Answers  






Describe inheritance and non-inheritance of a derived class?

0 Answers  


Do structs support inheritance?

0 Answers  


What's the order of call of constructors in inheritiance?

0 Answers  


Why is planning too much up front a mistake in an OOSAD project?

3 Answers   Infosys,


Explain about uml?

0 Answers  


Why is class hierarchies managed in object-oriented programming?

0 Answers  


Explain about inheritance in oops?

0 Answers  


Categories