joelwenzel
Programmer
- Jun 28, 2002
- 448
Hi,
I want to make a pass that contains pointers to other objects of that same class (like a linked list)...
In C++ I would use pointers to do this. Am I right saying that in java, I don't have to specifically declare something as a pointer. If I say
myclass bob;
bob.x = 5;
myclass tim = bob;
then tim actually points to bob and is not another instance of myclass that has all the data from bob copied into it?
Thanks
I want to make a pass that contains pointers to other objects of that same class (like a linked list)...
In C++ I would use pointers to do this. Am I right saying that in java, I don't have to specifically declare something as a pointer. If I say
myclass bob;
bob.x = 5;
myclass tim = bob;
then tim actually points to bob and is not another instance of myclass that has all the data from bob copied into it?
Thanks