Question: The following statement creates a BankAccount array: BankAccount[] acc = new BankAccount[10]; Is it okay or not okay to execute the following statements? Acc[0].setBalance(5000.0); Acc[0].withdraw(100.0);
The following statement creates a BankAccount array:
BankAccount[] acc = new BankAccount[10];
Is it okay or not okay to execute the following statements?
Acc[0].setBalance(5000.0);
Acc[0].withdraw(100.0);
Step by Step Solution
3.39 Rating (161 Votes )
There are 3 Steps involved in it
No it is not okay to execute the following sta... View full answer
Get step-by-step solutions from verified subject matter experts
