Ravi Kiran V wrote:You mean to say that we must use Integer I as an Instance variable but not as local variable .
so thats why it isn't qualified for Composition ??
If you can then say "My Something HAS-AN Integer", then I would accept that as composition.
Here a Car HAS-AN Engine. A Car HAS-SEVERAL Wheels. That is obvious. Your example is less obvious, but if you can say that your Something HAS-A Number, then you have presented an example of composition.