Issue w/ Using Methods 9/13


#1



https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/using-methods-1?action=resume


It's saying "Did you call the bark method on the spike object? Make sure you call it inside of the main method.", but I can't see what I did wrong. Someone please help:(


Replace this line with your code.


#2

Hey there.

Currently your Dog Class ends just after your Dog constructor. You'll need to move that extra curly brace and place it under the main method so that the Dog class also contains the bark method and main method. Once you do this it should work.

Hope that makes sense.


#3

Aha! Great thanks so much.


#4

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