tags:

views:

24

answers:

0

Can a problem have a relation of both aggregation and composition between two classes at the same point in time?

Like any real time scenario where there can be aggregation corresponding to one method and composition related to other method.

I am unable to figure out any scenario where both composition and aggregation occur simultaneously between two classes.

Any help will be appreciated.