class Bank {
private:
Customer customers;
int numberOfCustomers[];
public:
addCustomer (std::string f, std::string l);
int getNumOfCustomer()const;
Customer getCustomer(int index);
};
- Add two attributes to the Bank class: customers (an array of Customer objects) and numberOfCustomers (an integer that keeps track of the next customers array index).
- Add a public constructor that initializes the customers array with some appropriate maximum size (at least bigger than 5).
- Add the addCustomer method. This method must construct a new Customer object from the parameters (first name, last name) and place it on the customers array. It must also increment the numberOfCustomers attribute.
- Add the getNumOfCustomers accessor method, which returns the numberOfCustomers attribute.
- Add the getCustomer method. This method returns the customer associated with the given index parameter.