SyntaxFix
Write A Post
Hire A Developer
Questions
You should override toString() method in your Dog class. which will be called when you use this object in sysout.
toString()
Dog