// Helene Martin, CSE 142 // Models a bank account public class BankAccount { int accountNum; String username; double balance; int transactions; // number of transactions completed // list of transactions // interestRate // password // checking or savings // creates an account with the given number, user name and balance public BankAccount(int num, String name, double initialBalance) { System.out.println("Creating account for " + name); accountNum = num; username = name; balance = initialBalance; } // returns a String representation of this account public String toString() { return "#" + accountNum + " (" + username + "): $" + balance; } }