Hi Nick,
I apologize I have so many questions as regards to lesson 4. So far I have 2 questions about lab 4.
1) Why is that instance field variable transactions is not initialized to 0 in the constructor of abstract class Account?
For every newly created account object, I assume the number of transaction is expected to be zero. Its value is vary on different account objects, so it makes sense it's not being declared/defined as a static variable. There's also a resetTransactions method can be used/called to automatically reset the number of transactions to zero at the beginning of each month. That means the value of variable transactions can be maintained well.
2) Variable accountList for ArrayList instance is already declared in the Buttoncontroller class. Why is that it is being declared again in the NewFXMain?
That particular line of code is copy-typed as following;
ArrayList<Account> accountList = new ArrayList<>();
Thanks,
Carol