芜湖不芜
第一题Person接口import java.util.Date;public interface Person { public void setData(String sID, String speciality, String name, String sex, Date birthday); public String getData(); }Student实现类import java.util.Date;public class Student implements Person { private String sID; private String speciality; private String name; private String sex; private Date birthday; @Override public void setData(String sID, String speciality, String name, String sex, Date birthday) { this.sID = sID; this.speciality = speciality; this.name = name; this.sex = sex; this.birthday = birthday; } @Override public String getData() { return "Student [sID=" + sID + ", speciality=" + speciality + ", name=" + name + ", sex=" + sex + ", birthday=" + birthday + "]"; } }