我有以下代码:
public class Person{
class Student extends Person{}
public static void main(String[] ){
Person p = new Student();
//error compiling here, can't access non-static member from a static context
}
}
请帮我解释一下,谢谢你的帮助