62,612
社区成员
发帖
与我相关
我的任务
分享
class People{
private String name; //姓名
private String IDCard;//身份证号
private Clothes clothes;//衣服
public People() {
}
public People(String name, String IDCard) {
this.name = name;
this.IDCard = IDCard;
}
}
class Student extends People{
private int no;//学号
public Student() {
}
public Student(String name,String IDCard,int no) {
super(name,IDCard);
this.no = no;
}
}
class Clothes{
private String clothesName;
}