Hi,
I was wondering if you could do something like this in java:
public Class Actor {
...
Object Object 1 = new Object(...);
...
public void function() {
this.Object1 = this.Object1.loop();
}
}
where
public Class Object {
...
public Object loop() {
Object Object2 = new Object(...);
...
return Object2;
}
}
Could this cause reference problems? Is there any "cleaner" way to make an object spawn its own successor?
Thank you in advance