The Menu
class job is to let the user interacting with the program, by displaying a menu of operations and processing the operation they want to process.
operationNumber
: Integer variable that stores the operation number chosen by the user.
-
displayOptions()
: A private method that displays the options for the user. -
getUserChoice()
: A private method that returns the operation number chosen by the user. -
processMenu()
: A public method that processes the chosen option.