01: /**
02:    A bank customer with a checking and savings account.
03: */
04: public class Customer
05: {  
06:    /**
07:       Constructs a customer with a given number and PIN.
08:       @param aCustomerNumber the customer number
09:       @param checkingAccountNumber the checking account number
10:       @param savingsAccountNumber the savings account number
11:    */
12:    public Customer(int aCustomerNumber, 
13:       int checkingAccountNumber, int savingsAccountNumber)
14:    {  
15:       customerNumber = aCustomerNumber;
16:       checkingAccount = new BankAccount(checkingAccountNumber);
17:       savingsAccount = new BankAccount(savingsAccountNumber);
18:    }
19:    
20:    /** 
21:       Gets the checking account of this customer.
22:       @return the checking account
23:    */
24:    public BankAccount getCheckingAccount()
25:    {  
26:       return checkingAccount;
27:    }
28:    
29:    /** 
30:       Gets the savings account of this customer.
31:       @return the checking account
32:    */
33:    public BankAccount getSavingsAccount()
34:    {  
35:       return savingsAccount;
36:    }
37: 
38:    private int customerNumber;
39:    private BankAccount checkingAccount;
40:    private BankAccount savingsAccount;
41: }