Is not an enclosing class Java

后端 未结 11 2524
轻奢々
轻奢々 2020-11-28 01:41

I\'m trying to make a Tetris game and I\'m getting the compiler error

Shape is not an enclosing class

when I try t

11条回答
  •  情深已故
    2020-11-28 02:01

    As stated in the docs:

    OuterClass.InnerClass innerObject = outerObject.new InnerClass();
    

提交回复
热议问题