Stuck at 5/13

<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.>
I’m stuck at the first question 5/13

<In what way does your code behave incorrectly? Include ALL error messages.>
It asks me to add the dogsAge parameter to the constructor, but I think that I have already added that.

class Dog{

  int age ;

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

  public static void main(String[] args)
  {


	}
}


Was stuck just like you, then I deleted all code and tried this code:

class Dog {


    int age;

    public Dog(int dogsAge) {

        age = dogsAge;
    }
}

public Dog(int dogsAge) {
age = dogsAge;

}

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