I have done some research and googled a lot. I have some confusion to confirm either my scenarios are correct or not.
Here is first question:
With reference to Figure down, what do you think is the most likely implementation of the relationship between Car and Passengers? Choose only one option
A. Inheritance
B. Association
*C. Aggregation
D. Composition
So, the answer is Aggregation as I understand the scenario and googled but I need confirmation from other developers.
Here is second question:
With reference to Figure down, what do you think is the most likely implementation of the relationship between Apple and Fruit?
A. Inheritance
B. Association
C. Aggregation
*D. Composition
So, the answer is Composition I understand the scenario and googled but I need confirmation from other developers.
All these above questions are from well knows internet sites, now I am confuse what is the logic behind it.
Regards