Where did i go wrong?

<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/classes-constructor-parameters?action=lesson_resume&link_content_target=interstitial_lesson

<In what way does your code behave incorrectly? Include ALL error messages.>
im not getting an error message. it is saying i did not “add the dogsAge parameter to the constructor”.

```

class Dog {

	int age;

	public Dog (int dogsAge) {
  
  	age = dogsAge;
  
}

		
public static void main(String[] args) {

}

}

<do not remove the three backticks above>

Did you try taking out the space in-between public Dog and (int dogsAge)?

yes, it did not help :frowning:

I’m having issue and I’ve been stuck in that exercise.

Did you figure it out?

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