No enclosing instance of type xxx is accessible. Must qualify the allocation with an enclosing

意思是静态方法只能引用静态方法

No enclosing instance of type lianbiao1 is accessible. Must qualify the allocation with an enclosing instance of type
lianbiao1 (e.g. x.new A() where x is an instance of lianbiao1).

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_41359808/article/details/88352372