Im stuck on 7/13


#1



Hey, so i am stuck on lesson 7/13 on the OOP.

https://www.codecademy.com/courses/learn-java/lessons/object-oriented-programming/exercises/objects


Its saying that I need to make sure I include an integer parameter.


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




	public static void main(String[] args) {
    
    //Dog Dog = new spike(int age);
    Dog spike = new Dog(3);

	}
}


#2

Hi I cant help much but I did run your code on the editor and it didn't give me any errors.

I did read in other threads restarting the exercise can help I found this on the botton right corner "get help" and then "i want to restart this exercise"


#3

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