1package tutorial4.part3.q3;
3import java.util.ArrayList;
5final class Attendance {
6 private final Event event;
7 private final String venue;
8 public Attendance(Event event, String venue) {
12 public boolean isIdentical(Attendance attendance) {
13 return this.event == attendance.event && this.venue.equals(attendance.venue);
20 private final ArrayList<Attendance>
joinedEvents =
new ArrayList<>();
33 if (attendance.isIdentical(guestAttendance)) {
void joinEvent(Event event, String venue)
final ArrayList< Attendance > joinedEvents
ArrayList< Attendance > getJoinedEvents()
boolean hasCloseContactWith(Guest guest)