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

How will you define abstract classes?

0 Answers   QuestPond,


What is multiple inheritance? How java 8 supports multiple inheritance?

0 Answers  


What is the super keyword?

0 Answers  


What is the benefit of using inheritance?

0 Answers  


Comment: C++ "includes" behavior and java "imports"

1 Answers  






Why do we use oops concepts? What is its advantage?

0 Answers  


Suppose a class acts an Actor in the problem domain, how to represent it in the static model?

2 Answers  


Name some languages which have object oriented language and characteristics?

0 Answers  


explain dynamic binding

0 Answers  


Name the different creational patterns in object oriented design?

0 Answers  


What is the best tool for modeling and ORM framework

0 Answers   Infosys,


What is data abstraction? what are the three levels of data abstraction with Example?

0 Answers   TCS,


Categories