Posts

Showing posts with the label Aggregation

Association, Aggregation, Composition

Association, Aggregation, Composition When we have only one relationship between objects that may be Association . Aggregation and Composition.             In details             Association :             This is relation where each object has it own life cycle , independent  and no owner. Ex:-             Will take a common example of project and developer             A project will be having multiple developers and developer can work for different projects. There is a relationship but both are independent. Both can create and delete independently.   Aggregation: This is a specialize form of Association where all object have their own lifecycle has ownership on child object and the child object canno...

Association, Aggregation, Composition

Association, Aggregation, Composition When we have only one relationship between objects that may be Association . Aggregation and Composition.             In details             Association :             This is relation where each object has it own life cycle , independent  and no owner. Ex:-             Will take a common example of project and developer             A project will be having multiple developers and developer can work for different projects. There is a relationship but both are independent. Both can create and delete independently.   Aggregation: This is a specialize form of Association where all object have their own lifecycle has ownership on child object and the child o...