I've got this code but i get an warning with creating the Dog instance


#1

Hey, underneath stands my code, what is wrong?

class Dog {
  
  int age;

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

	public static void main(String[] args) {

    	Dog Terra = new Dog(5);
	}

}

#2

What is your error message telling you?


#3

Instance is not clarified


#4

I can't replicate that message using your code.

Under the Get Help button there is an option to reset this exercise. Try that and then redo the exercise.


#5

Same happens to me! Code is as yours, but can`t get to pass the excersice...


#6

Then it is a bug in the progamming


#7

Which OS and browser are you two using?