Hi,
I need to find pratical explaination of Composition in C#.
Composition is again specialize form of Aggregation. It is a strong type of Aggregation. Child object does not have their lifecycle and if parent object deletes all child objects will also be deleted.
Lets take an example, Houses and Room.
publicclassRoom{//...}publicclassHouse{Room r =newRoom();//...}
If we delete House class (Parent) how should child object destoy which Room
Pleased advice
Thanksطحہ زبیر احمد Taha Zubair Ahmed http://www.tahazubair.blogspot.com