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 difference between new and override?
What is the abstract method modifier?
Why do we use oops concepts? What is its advantage?
Tell me something about abstract classes?
What does the “abstract” keyword mean in front of a method? A class?
Explain about the design phase?
If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?
Difference between class and an object?
Give any criteria when you use an abstract class and an interface?
0 Answers Sans Pareil IT Services,
What is data encapsulation and what is its significance?
What if we make the method as abstract in another interface?
What is the benefit of Composition over Inheritance?