Originally posted by fred rosenberger:
It would help in the future if you posted the exact error message...
but, i think what the problem is is that you have an array of Objects. your reference is of type Object, not of type Fruit. so, there is no such thing as Object.info().
in other words, since fruits is declared as an Object reference, you can only call Object methods.
if you make it
Fruit[] fruits = new Fruits[0];
you'll find a brand new problem to fix!!! (how big is the array you're declaring???)
Next time I will definitely post the exact error message. Thank you for taking the time to look at my problem and thank you for HELPING me figure it out. Something just clicked...