mohitkumar gupta wrote:Instances must be used when creating a has-a relationship.
is it true ?
I think, there is a confusion in the term. Instance variables are used when creating a HAS-A relationship! But, the instance variable can be null. So, no need of instances! Just a variable declaration can be used!