//******************************************************************** // Account.java Author: Sophie Quigley // // Account class describes bank accounts // //******************************************************************** public class Account2 { public int accountID; private int balance; private Customer2 customer; public void Deposit (int amount) { balance = balance + amount; } public boolean Withdraw (int amount) { if (amount <= balance) { balance = balance - amount; return true; } else { System.out.println("Sorry you have unsufficient funds to cover withdrawal."); return false; } } public int Balance () { return balance; } }