Frequently Asked Interview Questions

Aggregation

Aggregation (“has a” relationship):

Aggregation occurs when a class is a collection or container of other classes, but where the contained classes do not have a strong life cycle dependency on the container; essentially, if the container is destroyed, its contents are not.

Example: Room has a table and the table can exist without the room. The table can have meaning without the room also. Example: A person has an address.

Most Visited Pages

Home | Site Index | Contact Us