7/13 error displayed

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/objects

<In what way does your code behave incorrectly? Include ALL error messages.>
I’m getting this error message, what should i improve in my code?

“Did you create a Dog object using the Dog constructor? Make sure you indicate an integer parameter. Use the example to help you.”

```

class Dog {

int age;

public Dog(int dogsAge) {

age = dogsAge;

}

public static void main(String[] args) {

Dog pies = new Dog(10);
}

}

<do not remove the three backticks above>

Hey there.

The instructions are pretty specific as in they want you to name the Dog object spike and nothing else. Doing so should solve your issues here :slight_smile:

1 Like

Thanks! Another reason to get my eyes checked.

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