こんにちはみんな 重複したコンストラクターに関してエラーが発生していますが、私の割り当てによると、別のコンストラクターが別のフィールドが必要です。
仕様:
- Meeting – 場所、件名、文字列配列としての出席者のリスト、 Notes 、 addAttendee(String name) メソッド。
- 1 人の出席者を出席者配列に設定するコンストラクタ。
- 出席者のリストに割り当てられた文字列の配列を受け入れるコンストラクター。
- 前の 2 つと同じですが、note フィールドを文字列として設定できるコンストラクターがさらに 2 つありました。
ここにコードの一部があります
public Meeting(String name) {
this.name = name;
listofAttendees[count] = name;
count++;
// blank constructor for no parameter super constructor
}
// Constructor to accept an array of strings assign to the list of Attendees
public Meeting(String[] listofAttendees) {
this.listofAttendees = listofAttendees;
}
// CONStructors for note field
public Meeting(String notes) { // Error here!
this.notes = notes;
}