Class Booking

java.lang.Object
com.iu.javadatastructureslab.model.Booking

public class Booking extends Object
Represents a restaurant booking request.
  • Constructor Details

    • Booking

      public Booking(String customerName, String bookingTime, String bookingDate, int tableNumber)
      Creates a booking record.
      Parameters:
      customerName - customer name
      bookingTime - booking time string
      bookingDate - booking date string
      tableNumber - table number
  • Method Details

    • getCustomerName

      public String getCustomerName()
      Returns the customer name.
      Returns:
      customer name
    • getTableNumber

      public int getTableNumber()
      Returns the table number.
      Returns:
      table number
    • getBookingTime

      public String getBookingTime()
      Returns the booking time.
      Returns:
      booking time
    • getBookingDate

      public String getBookingDate()
      Returns the booking date.
      Returns:
      booking date