Class Account

java.lang.Object
br.com.geekuniversity.section11.Account

public class Account extends Object
  • Constructor Details

    • Account

      public Account(int number, float balance, float limit, Client client)
  • Method Details

    • withdraw

      public void withdraw(float value)
    • deposit

      public void deposit(float value)
      Method to make a deposit
      Parameters:
      value - To be deposited
    • getBalance

      public float getBalance()
      Method getter of the balance attribute
      Returns:
      The sum of the balance plus the limit
    • getLimit

      public float getLimit()