5/13


#1



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) {

  
  
		}
}


#2

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


#3

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

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


#4

OMG! Thank you hahaha I was so frustrated!!


#5

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