1.

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) AssociationThe question was asked in an online quiz.My question comes from Concepts of OOPs topic in portion Java Environment & OOPS Concepts of Java

Answer»

The CORRECT answer is (a) Aggregation

The best I can explain: Aggregation OCCURS when objects have their own life cycle and CHILD OBJECT can ASSOCIATE with only one parent object.



Discussion

No Comment Found

Related InterviewSolutions