static总结
static总结

package KuangShen_02;
/*
Static
静态代码块以后学
*/
public class Student {
private static int age;//静态变量
private double score;//非静态变量
public void run(){
}//非静态方法
public static void go(){
}//静态方法
public static void main(String[] args) {
Student s1 = new Student();
}
}

浙公网安备 33010602011771号