public class statictest {
public static void main(String args[]){
person4 a=new person4();
System.out.println("totol="+a.totol);//totol只有一个 因为static totol=1
person4 b=new person4();
System.out.println("totol="+b.totol);//第二个new totol只有一个不能被新赋值
person5 aa=new person5();
System.out.println("totol="+aa.totol);//totol只有一个 因为static totol=1
person5 bb=new person5();
System.out.println("totol="+bb.totol);//第二个new totol只有一个不能被新赋值
}
}