How to do Exercise 4/13?


From Learn Java.
I've been struggling with this for days :confused:

Error message: Did you create an instance variable called age? Place it inside of the class, but before the Dog constructor.

Didn't I do that though?

public class Dog{
//instance variable for age of dog
	int age;

	public Dog() {  //constructor method for Dog class

	public static void main(String[] args) {




what is the question


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