0

I have an abstract Course class with subclasses of Course. Course has it's own toString method and subclasses have an overwritten toString() method.

I have created a new Class Student that uses an array of Course[] with different subclasses instances ie Course[0] list = new SubClassName() etc.

When I use toString() on list[0] it calls the subclass toString.

How can I have access to the parent toString() method when it's been overwritten?

Thanks

chninja
  • 19
  • 7

0 Answers0