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 does the keyword virtual represented in the method definition?
Do we require parameter for constructors?
what is the difference between the up phase and up workflows?
Explain about encapsulation?
Why is java not fully objective oriented?
What is constructor and virtual function? Can we call virtual funciton in a constructor?
What is the difference between function overloading and over riding?
Can an interface contain fields?
What is the difference between an error and an exception?
what is virtual function and pure virtual function ?
What is the use of destructive method?
What is data abstraction? what are the three levels of data abstraction with Example?