7. I'm having trouble with this exercise


#1

I'm having trouble with this exercise. Here is my code

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


	public static void main(String[] args) {
    	
    	Dog spike = new Dog (2);

	}

}

7.Objects
#2

Great. Got a question?