Exercise 4/13


#1

the error is "Did you create an instance variable called age? Place it inside of the class, but before the Dog constructor." What I do wrong?
class Dog {

 int dogsAge;

public Dog (int dogsAge) {

}
public static void main(Srting[] args){

}

}

#2

Ensure the variable is called age. If it's called dogsAge then it may not work because of how the courses are created.


#3

thanks. This work
class Dog {

 int age;

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

	public static void main(String[] args)
	{

	}

}

#4