Final answer:
To create the BankCustomer class, you need to define private variables for the BankAccount objects and customer name. You also need to create constructors, getters, setters, and a method to calculate the total balance. In the main method, you can create instances of BankCustomer and test the class.
Step-by-step explanation:
To create the BankCustomer class, you need to define three private variables of type BankAccount (checking, savings, and money market) and one variable of type String (customerName). In this class, you can create multiple constructors, such as a full constructor, a partial constructor, and a non-arg constructor, depending on your needs.
Next, you need to create getter and setter methods for the four attributes (checking, savings, money market, and customerName) to interact with these variables.
To calculate the total balance of all three BankAccount objects, you can create a method that sums up the balances of the three accounts.
In the main method of the BankCustomerTest class, you can create two instances of BankCustomer, set their names and account information, and perform operations such as adding money to specific accounts. Finally, you can print out the account information and values to test the functionality of your BankCustomer class.