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 |
Why is OOP good?
Explain about polymorphism?
What do you mean by polymorphism?
0 Answers InterGraph, Ittiam Systems,
What is the @functionalinterface annotation?
Can we override static methods of a class?
Explain about realistic modeling?
Explain the mechanism of composition?
What is the difference abstract class and interface?
Which oops concept exposes only necessary information to the calling functions?
How do I make sure that an object is released in code such as a connection or file object?
Explain about abstraction?
Is class an Object? Is object a class?
3 Answers InfoAxon Technologies, Protech,