Aggregation and Composition
what is aggregation and composition in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Feb 12, 2015, 5:52 AM
Please refer my article
http://www.c-sharpcorner.com/UploadFile/ff2f08/association-aggregation-and-composition/
Mohit SharmaPosted Feb 12, 2015, 4:02 AM
Represent relationship between two or more objects where all objects have their own life cycle and there is no owner. (Student, Teacher)
Aggregation: It is specialized form of association where all objects have their own life cycle but there is ownership. (Department, Teacher)
Composition: It is strong type of aggregation. In this relationship child object doesn't have their life cycle without parent object. If parent object deleted child object will also be deleted. (Houser, Room)
Dependency: It represents the relationship between two or more objects where an object is depend on another object. (Client, Supplier)
Guest UserPosted Feb 10, 2015, 4:49 AM