a) Composition
b) Association
c) Encapsulation
d) Aggregation
Answer: d
Explanation: Aggregation occurs when objects have their own life cycle and child object can associate with only one parent object.
Related Posts
What would be behaviour if the constructor has a return type?
What would be the behaviour if one parameterized constructor is explicitly defined?
What is not the use of “this” keyword in Java?
What is true about protected constructor?
Abstract class cannot have a constructor.
What is true about constructor?
What is true about Class.getInstance()?
Join The Discussion