Package trial.gaurav.menu
package trial.gaurav.menu
-
ClassDescriptionThe `Action` interface is used to define a contract for classes that represent actions in a menu.The `Exit` class represents an action to terminate the program when selected in the menu.The `Menu` class provides functionality to display a menu and interact with the user's choices.The `MenuItem` class represents an item in the menu with a unique choice number, a name, and an associated action.