What am I doing wrong?


I just started doing code and am having some issues with it.

Above is what I am working with and I can't seem to figure out what I did wrong.

Thank you!


Please post your code and a link to this exercise. Thanks.

One thing that does stand out is the spelling of your new instance... Spike when it should be spike. That code could also go to a new line. How readable is it, right now?


Replace Dog Spike = new Dog(); with Dog Spike = new Dog(5);
The problem is that the dog needs an int, this int represents his age


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.