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 are the different ways for a method to be overloaded?
Explain static binding
Explain about inheritance hierarchies?
Why do we use oops concepts? What is its advantage?
How to differentiate between a CreateObject() and GetObject() ?
State some of the advantages of object oriented programming?
What is the use of interface?
what is virtual function and pure virtual function ?
How do we implement serialization actually?
USECASE is an implementation independent notation. How will the designer give the implementation details of a particular USECASE to the programmer?
What is the difference between aggregation and composition?
Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?