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.>
5/13
Help, i am stuck at this exercise
Always show error below.
Did you add the dogsAge parameter to the constructor?

Please help check my code.
Thanks.

```

class Dog {

int age;

public Dog (int dogsAge) {

	age = dogsAge ;

}

public static void main(String args) {

	}

}

<do not remove the three backticks above>

I’m stuck in the same spot with the same code. did you get a reply?

OMG! Its because there is a space between Dog and the (

the line should read…
public Dog(int dogsAge) {

2 Likes

OMG! Thank you hahaha I was so frustrated!!

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