How to make an array of objects that creates new accounts when called?
问题 I need help on a programming assignment. The class of BankAccount already exists and works as it should. I have never been asked to place objects into arrays before, and am having trouble doing so. I have started with the following: public class Bank { private BankAccount[] Bank; public Bank(BankAccount[] Bank) { BankAccount[] b1 = new BankAccount[10]; } Although it compiles, it is wrong. I am not sure where to go. The following are the requirements of the code that I am currently stuck on.