What is it called where object has its own lifecycle and child object cannot belong to another parent object?
(a) Aggregation
(b) Composition
(c) Encapsulation
(d) Association
The question was asked in an online quiz.
My question comes from Concepts of OOPs topic in portion Java Environment & OOPS Concepts of Java