posted 15 years ago
I need to create an arry of the subclass. I need to create a for loop that instanitates 5 objects of the Checking class and then a for loop that prints out the toString method and prints out the amount of interest for each object. I have three as the interstperiod.
this is what I have so far:
this complies but it is only printing the first three account numbers and account balances. Why is that. If I add the bankSavings[x].computeIntrest () to it. It can't find it.
AccountArray.java:24: cannot find symbol
symbol : method computeIntrest()
location: class Checking
System.out.println(bankSavings[x].toString()+ bankSavings[x].computeIntrest());
Please help. Maybe I need a diffent way of getting the interest earned.