Class Help
java.lang.Object
bcu.cmp5332.bookingsystem.commands.Help
- All Implemented Interfaces:
Command
The Help class represents a command to print the help message of available commands in the flight booking system.
It implements the Command interface, allowing it to be executed within the context of a FlightBookingSystem instance.
Upon execution, the command prints out the predefined HELP_MESSAGE from the Command interface. This message includes a list of available commands and their descriptions for user reference.
Example usage:
// Create a new Help command instance
Command helpCommand = new Help();
// Execute the command within a FlightBookingSystem instance
helpCommand.execute(flightBookingSystem);
- See Also:
-
Field Summary
Fields inherited from interface bcu.cmp5332.bookingsystem.commands.Command
HELP_MESSAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(FlightBookingSystem flightBookingSystem) Executes the help command within the provided FlightBookingSystem instance.
-
Constructor Details
-
Help
public Help()
-
-
Method Details