// Allison Obourn
// CS& 141, Winter 2021
// Lecture 15

// Client that uses our custom BankAccount class.
// Creates a bank account, prints out whether a withdrawal was successful
// and prints the balance twice.

public class BankAccountClient {
   public static void main(String[] args) {
      BankAccount account = new BankAccount("Allison", 123, 100.0);
     
      System.out.println(account.withdraw(105));
      
      System.out.println("before: " + account.getBalance());
      
      // NOTE: the following code worked until we made our fields private. 
      //       now that our BankAccount fields are private, it won't compile.
      //account.balance -= 2000;
      
      System.out.println("after: " + account.getBalance());
   }
}