I am not understanding why Java is giving me this error message that I am somehow referencing 'this' when I am simply trying to instantiate an inner class.
Asked
Active
Viewed 147 times
0

Timothy Swan
- 623
- 3
- 9
- 21
-
change `public class Statement` to `public static class Statement` – Andrey Morozov Sep 05 '14 at 05:33
-
If I do that, won't I not be able to instantiate it? – Timothy Swan Sep 05 '14 at 16:07
-
Yes you can. Just try :) – Andrey Morozov Sep 05 '14 at 20:11
-
But then I end up with a static class when I need instances. Also, I need my mother class to be abstract, do how do I make a constructor when I cannot make a static abstract class? – Timothy Swan Sep 11 '14 at 05:29