Package UI

Class UserMenu


public class UserMenu extends UserInterface
The UserMenu class provides static methods for displaying menus to different types of users (patients, doctors, pharmacists, and administrators) in the Hospital X System. It extends UserInterface.
  • Constructor Details

    • UserMenu

      public UserMenu()
  • Method Details

    • displayPatientMenu

      public static int displayPatientMenu()
      Displays the patient menu and prompts the user to select an option.
      Returns:
      the selected option as an integer
    • displayDoctorMenu

      public static int displayDoctorMenu()
      Displays the doctor menu and prompts the user to select an option.
      Returns:
      the selected option as an integer
    • displayPharmacistMenu

      public static int displayPharmacistMenu()
      Displays the pharmacist menu and prompts the user to select an option.
      Returns:
      the selected option as an integer
    • displayAdminMenu

      public static int displayAdminMenu()
      Displays the admin menu and prompts the user to select an option.
      Returns:
      the selected option as an integer