-peace.
-peace.
-peace.
Originally posted by Roopa Gowda:
i did understand that
I i1 = new I(), i2 = new I();
I i3 = new I(), i4 = new I();
creates 4 objects on the heap of type I, refered by i1,i2,i3,i4.
i1.other(i3); i2.other(i1);
i3.other(i2); i4.other(i4);
now i don't get this part.
i1.other referes to the same object as i3 does
i2.other referes to the same object as i1 does
i3.other referes to the same object as i2 does
i4.other referes to itself
but does it mean i1,i2,i3,and i4 do not refere to any object now?
these references still refer to the original objects right?![]()
i1.other(i3);
i2.other(i1);
i3.other(i2);
i4.other(i4);
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|