我有两门课,一门叫做俱乐部,一门叫做约会。- 日期扩展俱乐部
当我在下面添加这段代码时:在 Clubs 类中,它会弄乱我的 Date 类以及所有扩展 Clubs 的其他类。
public Clubs(Parcel in) { readFromParcel(in); }
这是我的约会班
public class Date extends Clubs {
public Date(String day){
clubName = day;
date = "";
eventType = "";
}
}
隐式超级构造函数 Clubs() 未定义必须显式调用另一个构造函数
上面的消息是我将鼠标悬停在红色下划线上时收到的错误public Date(String day){
任何帮助将不胜感激:
下面我发布了俱乐部课程
public class Clubs implements Parcelable{
protected String clubName;
protected String address;
protected String postcode;
protected String contactName;
protected String contactPhone;
String date, eventType, scrutTime, startTime, eventName, week;
public Clubs(String e){
}
public String getDetails() {
return address + " " + postcode + " " + contactName + " " + contactPhone + " " + date + " " + eventType + " " + scrutTime + " ";
}
public String getEvent() {
return date + " " + eventType;
}
public String getName(){
return clubName;
}
public String getDate(){
return date;
}
public String getWeek(){
return week;
}
public String geteventName(){
return eventName;
}
public void setEvent(String eventType, String date, String scrutTime, String startTime, String eventName, String week) {
this.eventType = eventType;
this.date = date;
this.scrutTime = scrutTime;
this.startTime = startTime;
this.eventName = eventName;
this.week = week;
}
public void setEvent(String eventType, String date) {
this.eventType = eventType;
this.date = date;
}