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 |
Explain what an object is.
Explain the mechanism of composition?
Explain the term constructor
What is a static method? Why do we need static methods in java 8 interfaces?
How to use CRC Cards for Class Design?
What's the main difference between arraylist / hashmap and vector / hashtable?
Can I implement polymorphism using abstract class?
Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?
Why should project managers complete hard problems first in an OOSAD project?
What are the limitations of inheritance?
what are the main underlying concepts of object orientation?
What is garbage collection(gc)?