public class Person {
private int age;
private String name;
public Person(String name,int age)
{
=name;
=age;
}
public void setName(String name)
{
=name;
}
public void setAge(int age)
{
=age;
}
public int getAge() {
return ;
}
public String getName() {
return ;
}
public void display(){
("姓名:" + + "\n年龄:" + );
}
public static void main(String[] args)
{
Person person=new Person("小张",20);
();
}
}