标题: 定义了一个标准的person类 [打印本页] 作者: 18463730277 时间: 2015-5-19 22:42 标题: 定义了一个标准的person类 public class Person {
private String name;
private int age;
public Person() {
super();
}
public Person(String name, int age) {
super();
this.name = name;
this.age = age;
}
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;
}