// Hunter Schafer, CSE 143 // This class represents a bank account used by a client public class BankAccount { private String name; private int id; private double balance; // Constructs a bank account with no money in it // for the given name and user id public BankAccount(String name, int id) { this.name = name; this.id = id; this.balance = 0.0; } // Returns a String representation of this bank account // with the account owner's named followed by how much money // is in the account. public String toString() { return name + " $" + balance; } }