I'm trying to print out the details from the subclass auctionsale but I'm getting:
Exception in thread "main" java.lang.ClassCastException: SuperClass cannot be cast to Subclass the subclass extends the Superclass.
I've been calling a method from the subclass.
Am I on the right track or what should I be reading?
I'm using
Thanks in advance for your help.
Regards
Gerard
((SubClass)thing[i]).printDetails();