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 |
What is the use of destructive method?
Can you call the base class method without creating an instance?
What is the difference between new and override?
What is the use of finalize method?
What are all the operators that cannot be overloaded?
What is inheritance in java?
Can a class implement two interfaces having default method with same name and signature?
Why dynamic loading is used in object-oriented programming?
What if we override the conflicting method in the class?
What is an USECASE? Why it is needed?
What do you mean by data hiding?
0 Answers Tavant Technologies, Virtusa,
How to use CRC Cards for Class Design?