I was wondering how some things like getWorld() would work. Since Actor and World are abstract, they can't be created, to which I assume that the magic doesnt lie in both classes having an object of each other and referencing them. I reckon that the programm of Greenfoot creates a static world somewhere else (maybe main method). Thats the only way I can imagine getWorld(), setWorld(), addObject() being that accessible and the screenworld being distinguished from potentially other created worlds. I know this is just hypothetical, but I want to know how they (at least how they could) did that to understand the game better. There probably is a way simpler solution, would be grateful to get a reply.

