Package account

Class AccountImpl

java.lang.Object
account.AccountImpl
All Implemented Interfaces:
IAccount

public class AccountImpl
extends java.lang.Object
implements IAccount
  • Constructor Summary

    Constructors
    Constructor Description
    AccountImpl()  
  • Method Summary

    Modifier and Type Method Description
    int balance()  
    void deposit​(int amount)  
    java.lang.String getHolder()  
    int overdraft()  
    void setHolder​(java.lang.String newHolder)  
    void withdraw​(int amount)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AccountImpl

      public AccountImpl()
  • Method Details

    • balance

      public int balance()
      Specified by:
      balance in interface IAccount
    • deposit

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

      public void withdraw​(int amount)
      Specified by:
      withdraw in interface IAccount
    • getHolder

      public java.lang.String getHolder()
      Specified by:
      getHolder in interface IAccount
    • setHolder

      public void setHolder​(java.lang.String newHolder)
      Specified by:
      setHolder in interface IAccount
    • overdraft

      public int overdraft()
      Specified by:
      overdraft in interface IAccount