5/13: keeps giving 'Did you add the `dogsAge` parameter to the constructor?' error

https://www.codecademy.com/courses/learn-java/lessons/object-oriented-programming/exercises/classes-constructor-parameters

I still get can’t go to the next exercise. I get this message : 'Did you add the dogsAge parameter to the constructor?


class Dog{

	int age ;
  
	public Dog (int dogsAge){
    
  }
  	
  

	public static void main(String[] args) {

	}
}

I had the same error.
There is a space between Dog and “(int…)”

Good day

2 Likes

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