Class Exit

java.lang.Object
trial.gaurav.menu.Exit
All Implemented Interfaces:
Action

public class Exit extends Object implements Action
The `Exit` class represents an action to terminate the program when selected in the menu.
  • Constructor Details

    • Exit

      public Exit()
  • Method Details

    • select

      public void select()
      Performs the action to exit the program. The method terminates the program with a status code of 0.
      Specified by:
      select in interface Action