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 |
How will you define abstract classes?
What is multiple inheritance? How java 8 supports multiple inheritance?
What is the super keyword?
What is the benefit of using inheritance?
Comment: C++ "includes" behavior and java "imports"
Why do we use oops concepts? What is its advantage?
Suppose a class acts an Actor in the problem domain, how to represent it in the static model?
Name some languages which have object oriented language and characteristics?
explain dynamic binding
Name the different creational patterns in object oriented design?
What is the best tool for modeling and ORM framework
What is data abstraction? what are the three levels of data abstraction with Example?