public void CreditInterest() { for (int i = 0; i < accounts.Count; i++) { Account a = (Account)accounts[i]; a.CreditInterest(); } }
public void CreditInterest() { for (int j = 0; j < accounts.Count; j++) { Account a = (Account)accounts[j]; a.CreditInterest(); } }