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