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 abstract method?
Explain what is single and multiple inheritance?
Can you create an instance of an abstract class?
What do you mean by operator overloading?
Define Destructor?
Describe inheritance and non-inheritance of a derived class?
Do structs support inheritance?
What's the order of call of constructors in inheritiance?
Why is planning too much up front a mistake in an OOSAD project?
Explain about uml?
Why is class hierarchies managed in object-oriented programming?
Explain about inheritance in oops?