day08-静态代码块
This commit is contained in:
@@ -7,6 +7,7 @@ public class Student {
|
||||
//静态变量
|
||||
static String clazz;
|
||||
public Student() {
|
||||
System.out.println("Student无参构造被调用");
|
||||
}
|
||||
public Student(String name, int age) {
|
||||
this.name = name;
|
||||
|
||||
Reference in New Issue
Block a user