// Hunter Schafer, CSE 143 // This class shows how different instances have different state public class BankAccountClient { public static void main(String[] args) { // Two separate *instances* of the BankAccount *class* BankAccount bank1 = new BankAccount("Hunter", 1234); BankAccount bank2 = new BankAccount("Zach", 1111); bank1.deposit(999); bank2.deposit(666); // Each instance has its own state System.out.println(bank1); System.out.println(bank2); } }