本帖最后由 75100313 于 2014-3-24 14:58 编辑
Person类:
- package com.mth.bean;
- import java.util.Date;
- public class Person {
- private String name;
- private int age;
- private Date birthday;
- public Person() {
- super();
- // TODO Auto-generated constructor stub
- }
- public Person(String name, int age, Date birthday) {
- super();
- this.name = name;
- this.age = age;
- this.birthday = birthday;
- }
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public Date getBirthday() {
- return birthday;
- }
- public void setBirthday(Date birthday) {
- this.birthday = birthday;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- @Override
- public String toString() {
- return "Person [age=" + age + ", birthday=" + birthday + ", name="
- + name + "]";
- }
- }
复制代码
内省:
|