No enclosing instance of type Stu is accessible

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


 

When prompted, no instance can access SxtStu, you must be assigned to a suitable external access internal class instance class.
The right way can be:
Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/hycc/p/12231676.html