How can you be so sure? Maybe he has actually overridden toString to print his own message.
Type: Posts; User: newbie
How can you be so sure? Maybe he has actually overridden toString to print his own message.
The setHeight() method of the Dog class takes in an integer parameter, you're passing it a String.
Remove the surrounding quotes from 23 and it should work.