What am I doing wrong?


#1

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!


#2

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?


#3

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


#4

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