Suppose you want to create a new class called Owner Which cl
Suppose you want to create a new class called Owner. Which class would be the best class to have an aggregation relationship with Owner? Does it have a strong or weak association?
Solution
Suppose this owner class represents owner of a restaurant. So Restaurant class will show the aggregation to Owner class as Owner has a Restaurant. Now since this is an aggregation it is a strong type of association. What that means is if an Owner object is collected by Garbage collector then it will delete Restaurant object too associated with it.
