package calendar;
import java.util.Calendar;
private int m_guests;
public static final int NO_FIELDS = 8;
public static final int IDX_GUESTS = 7;
return m_guests;
}
m_guests = guests;
}
public WorkEvent(
int id, String title, Calendar start_date,
Calendar end_date, String description, int repetition, int guests)
throws Exception {
super(id, title, start_date, end_date, description, repetition);
m_guests = guests;
m_type = Event.WORK_EVENT;
}
super();
m_guests = 0;
m_type = Event.WORK_EVENT;
}
@Override
String csv = super.ToCSV() + ","+m_guests;
return csv;
}
public static void main (String[] args){
WorkEvent test = new WorkEvent();
test.SetGuests(15);
System.out.println(test.GetGuests());
}
}