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 serialization? How do we implement serialization actually?
What is ‘this’ pointer?
Explain OOPS.
What is virtual?
Explain persistence?
Why dynamic binding is used in object-oriented programming?
Is it possible to create partial structs, interfaces and methods?
How do we implement serialization actually?
What is the use of interface?
Do structs support inheritance?
What if we override the conflicting method in the class?
What is association?