it's essentially a key feature of OO languages. You can compose complex objects of simpler ones - not only of primitive values like numbers or strings. So yes, an object can "contain" other objects
In your example heart, kidneys, liver etc. would become members of the surrounding class human or something like this.
Marco Ehrentreich wrote:I thought my explanation helped to make it clearer
If you declare a class "Human" which has a member of type "Heart" (a class too) you can instantiate those classes and you get an object of type Human which contains an object of type Heart. Better now?
Yes Marco thanks man.. i think i am too ignorant skipping some words.. sorry for making you retyping stuff again