Forums Register Login
Compiler unable to find symbol...
Hi again!

I'm trying to compile the following code and I keep getting the same 4 errors, regardless of how I try to create the object. I've tried "Cat c = new Cat();" and similar for the tortoise.
I've also tried, in the Cat/Tortiose classes, to have the 'System.out.println' showing what they are currently returning.

These are all in different files, in a 'pets' folder.

Very confused!

Any help would be greatly appreciated!

Thanks in advance.

The error:

Try this.

I'd typed 'Return' instead of 'return'.
I'd spent the best part of an hour trying to figure out what I was doing wrong!
Was going through my notes/ books for ages!


Thanks Ryan!
We have all done that sort of thing. The tiniest spelling error . . .
I like tacos! And this tiny ad:
Rocket Oven Kickstarter - from the trailboss

This thread has been viewed 611 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 16, 2018 01:02:57.