This content has been marked as final. Show 3 replies
I guess this is because in Game, it imports the class Word, and in Word, it imports the class Game, so what should be imported first? It's a circle...
So you should rethink the design of your game. Maybe create a 3rd class with the static method(s), or have the method in Word and use it from Game. It's always good to have as few references to other classes as possible. I guess Game will need Word, but Word maybe doesn't need Game as well, so keep Word independent from Game and don't reference to Game there, if it's not totally necessary.
hmm ill try making a 3rd class with static functions now :) thanks!
actually it still errors when i save it but i think its a program bug already..right? it just has erros when i save it then test for errors. if i try to edit it then test for errors, it says everything is ok. when i save it, then test for errors, the rror shows up again.