What is it called where child object gets killed if parent object is killed?
(a) Aggregation
(b) Composition
(c) Encapsulation
(d) Association
The question was asked during an interview.
Origin of the question is Concepts of OOPs topic in portion Java Environment & OOPS Concepts of Java