1239127890412785479128974u784901280381208409218597209179027 091 能389027达成16也789231每月7832有78放要求5
class Person{
private String name;
private int age;
//构造器调用其他构造器
public Person() {
System.out.println("初始化四十行代码");
}
public Person(String name) {
this();
this.name = name;
}
public Person(String name,int age) {
this(name);
this.age = age;
}
public void eat() {
System.out.println("吃饭");
}
public void study() {
System.out.println("学习");
this.eat();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}