package HomeWork;
public class Test25 {
String name;
String sex;
int age;
int shengao;
int weight;
public Test25() {
super();
// TODO Auto-generated constructor stub
}
public Test25(String name, String sex, int age, int shengao, int weight) {
super();
this.name = name;
this.sex = sex;
this.age = age;
this.shengao = shengao;
this.weight = weight;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public int getShengao() {
return shengao;
}
public void setShengao(int shengao) {
this.shengao = shengao;
}
public int getWeight() {
return weight;
}
public void setWeight(int weight) {
this.weight = weight;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Test25 t = new Test25();
t.setName("胖子");
t.setAge(25);
t.setSex("男");
t.setShengao(178);
t.setWeight(88);
System.out.println("姓名:"+t.getName()+"\n年龄:"+t.getAge()+"\n性别:"+t.getSex()+
"\n身高:"+t.getShengao()+"\n体重:"+t.getWeight());
}
}