public Reservation() {
this(0, "", "", "", "", "", 0, "", "", "", 0, 0);
}
The other constructor is:
public Reservation(int reservationID, String additionalRequirements, String isGourmet, String isThemed, String firstName, String surname, int gourmetID, String mobileNo, Date date, String reservationTime, int noOfTables, int partyPeople) {
this.reservationID = reservationID;
this.additionalRequirements = additionalRequirements;
this.isGourmet = isGourmet;
this.isThemed = isThemed;
this.firstName = firstName;
this.surname = surname;
this.gourmetID = gourmetID;
this.mobileNo = mobileNo;
this.date = date;
this.reservationTime = reservationTime;
this.noOfTables = noOfTables;
this.partyPeople = partyPeople;
}
I don't have any experience with the Date class and its not recommended that we store dates as Strings as its frowned upon and not very professional

New Topic/Question
Reply



MultiQuote



|