import java.util.List; import java.util.ArrayList; public abstract class BankAccount { protected double balance; List customerList; public static final int MAX_OWNER = 2; protected static int numOwner; //* creates a bank account with zero balance public BankAccount() { this.balance = 0; } //* creates a bank account with a customer and an initial balance public BankAccount(Customer c, double balance) { this.balance = balance; } //* adds customers public void addPerson(Customer customer) { // create new customer with checking account, balance 0 Customer c1 = new Customer("Kellie","Smith"); CheckingAccount ca1 = new CheckingAccount(c1, 0.0); // create new customer with saving account, balance 0 Customer c2 = new Customer("Tom","Brown"); SavingAccount sa1 = new SavingAccount(s1, 0.0); } //* returns the number of customers on an account public int getNumCustomer() { return customerList.size(); } //* returns public getCustomerList() { } //* returns the account number public getAccountNumber() { return accountNumber; } //* Deposits money into the bank account public void deposit(double amount) { this.balance += amount; } //* Withdraws money from a bank account public abstract void withdraw(double amount); { this.balance -= amount; } //* returns the current balance of the bank account public double getBalance() { return this.balance; } //* obtains information about customers in the bank account public String toString() { return "BankAccount with balance: $" + this.balance; } }