编译不通过
class People {
private int age;
private String name;
People(int age,String name){
this.age=age;
this.name=name;
public static void introduce(){
System.out.print(age);
System.out.print(name);
}
}
}
public class Demo {
public static void main(String[] args) {
People p = new People(18,"lishuai");
p.introduce();
}
}