Class Booking
java.lang.Object
com.iu.javadatastructureslab.model.Booking
Represents a restaurant booking request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the booking date.Returns the booking time.Returns the customer name.intReturns the table number.
-
Constructor Details
-
Booking
Creates a booking record.- Parameters:
customerName- customer namebookingTime- booking time stringbookingDate- booking date stringtableNumber- table number
-
-
Method Details
-
getCustomerName
Returns the customer name.- Returns:
- customer name
-
getTableNumber
public int getTableNumber()Returns the table number.- Returns:
- table number
-
getBookingTime
Returns the booking time.- Returns:
- booking time
-
getBookingDate
Returns the booking date.- Returns:
- booking date
-