Class BankAccount

  • All Implemented Interfaces:
    Account

    @Dependent
    public class BankAccount
    extends Object
    implements Account
    • Constructor Detail

      • BankAccount

        public BankAccount()
    • Method Detail

      • withdraw

        public void withdraw​(int amount)
        Specified by:
        withdraw in interface Account
      • deposit

        public void deposit​(int amount)
        Specified by:
        deposit in interface Account
      • getBalance

        public int getBalance()
        Specified by:
        getBalance in interface Account