Contents tagged with Composition vs Aggregation Chander Dhall C# best practices General software development
-
Composition vs Aggregation
Composition and aggregation both are different forms of association. If an association is more like a 'is a' relationship, both of these are more like a 'has a' relationship. It is more like a whole/part relationship or an owner/owned relationship. For example, an automobile has an engine or the other way round, engine is 'a part of' an automobile. What's the difference?