package New;
public class Person {
public String name;
public String sex;
public int age;
public Person(String a,String b,int c){
name=a;
sex=b;
age=c;
}
Person tom=new Person("tom","男",12);
public static void main(String[] args){
System.out.println(tom.sex);//Problems:cant make a static reference to the non-static field p1
}
}