@@ -0,0 +1,1254 @@
+package chapter15;%0A%0Aimport java.io.Serializable;%0A%0Apublic class Account implements Serializable %7B%0A%0A%09private int account;%0A%09private String firstName;%0A%09private String lastName;%0A%09private double balance;%0A%09%0A%09// initializes an Account with default values%0A%09public Account() %7B%0A%09%09this(0, %22%22, %22%22, 0.0); // call other constructor%0A%09%7D%0A%09%0A%09// initializes an Account with provided values%0A%09public Account(int account, String firstName, String lastName, double balance) %7B%0A%09%09this.account = account;%0A%09%09this.firstName = firstName;%0A%09%09this.lastName = lastName;%0A%09%09this.balance = balance;%0A%09%7D%0A%09%0A%09// set account number%0A%09public void setAccount(int account) %7B%0A%09%09this.account = account;%0A%09%7D%0A%09%0A%09// get account number%0A%09public int getAccount() %7B%0A%09%09return account;%0A%09%7D%0A%0A%09// set first name%0A%09public void setFirstName(String firstName) %7B%0A%09%09this.firstName = firstName;%0A%09%7D%0A%09%0A%09// get first name%0A%09public String getFirstName() %7B%0A%09%09return firstName;%0A%09%7D%0A%0A%09// set last name%0A%09public void setLastName(String lastName) %7B%0A%09%09this.lastName = lastName;%0A%09%7D%0A%0A%09// get last name%0A%09public String getLastName() %7B%0A%09%09return lastName;%0A%09%7D%0A%0A%09// set balance%0A%09public void setBalance(double balance) %7B%0A%09%09this.balance = balance;%0A%09%7D%0A%0A%09// get balance%0A%09public double getBalance() %7B%0A%09%09return balance;%0A%09%7D%09%0A%09%0A%7D // end class Account%0A

Create Account.java