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

Does PowerShell support OOPs?

0 Answers   Microsoft,


Difference between composition and inheritance ?

0 Answers  


Explain the rationale behind object oriented concepts?

0 Answers  


Why use oops?

0 Answers  


What is the default access specifier in a class definition?

0 Answers  






What if we make the method as abstract in another interface?

0 Answers  


What is the use of Operator Overloading?

1 Answers   Protech,


What are the Differentiate between abstraction and encapsulation.

0 Answers  


How a program can be structured using the concept of object oriented programming?

0 Answers  


Explain static binding

0 Answers  


Can you tell something about GDI objects?

0 Answers   C DAC, CDAC,


What is the difference between an interface and abstract class?

0 Answers  


Categories