java 实例化一个内部类时出现问题...

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

第1个回答  2012-10-20
public class A {
public class B {}
...

}
这种只能
A a = new A();
B b = a.new B();本回答被提问者和网友采纳
第2个回答  2012-10-22
把代码贴上来。
相似回答