Class ShowSeatEY


public class ShowSeatEY extends SeatEY
A Show seat object that is derived from SeatEY object

A ShowSeat object used to store all the parameters of the Show Seats

  • Constructor Details

    • ShowSeatEY

      public ShowSeatEY(String seatID, String seatRow, int seatNumber, String seatType)
      The constructor of Show Seat (requires 4 parameters)
      Parameters:
      seatID - The seatID
      seatRow - The seat row
      seatNumber - The seat number
      seatType - The seat type
    • ShowSeatEY

      public ShowSeatEY(String seatID, String seatRow, int seatNumber, String seatType, boolean occupied)
      The constructor of show seat (requires 5 parameters)
      Parameters:
      seatID - The seatID
      seatRow - The seat row
      seatNumber - The seat number
      seatType - The seat type
      occupied - True if occupied False if not occupied
  • Method Details

    • setOccupied

      public void setOccupied(boolean occupied)
      Method to set seat occupied
      Parameters:
      occupied - true if occupied else false
    • isOccupied

      public boolean isOccupied()
      Method to check if a seat is occupied
      Returns:
      True if occupied,False if not occupied