Vidyalelo
PHP · Q108

Object Oriented Concept

Programming · PHP · question 108

Q108

If the diamond is filled it depicts which relationship?

A.
Strong Aggregation
B.
Composition
Answer
C.
Abstraction
D.
Inheritance

Answer: Option B

Solution

Answer: Option B
Solution:
In composition, the contained object can be referenced by its container only. It should be deleted when the container is deleted.