Class DoRemoveAccount

java.lang.Object
pt.tecnico.uilib.menus.Command<Account>
bank.app.account.DoRemoveAccount

public class DoRemoveAccount extends Command<Account>
Remove a this account from the bank. The menu closes.
  • Constructor Details

    • DoRemoveAccount

      public DoRemoveAccount(Account receiver, Bank bank)
      Parameters:
      receiver - the target account.
      bank - the bank the account belongs to.
  • Method Details

    • execute

      protected final void execute() throws CommandException
      Description copied from class: Command
      Executes the command: as defined in the Command pattern, the command's execution should eventually invoke the receiver's action.
      Specified by:
      execute in class Command<Account>
      Throws:
      CommandException - if something wrong or unexpected occurs.
      See Also:
      pt.tecnico.po.ui.Command#execute()