Says i haven't created a run method


#1



https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/methods-2?action=lesson_resume&link_content_target=interstitial_lesson


No error messages


class Dog {
	int age;
  
	public Dog(int dogsAge){
    age = dogsAge;
    
    
  }
	   public void bark(){
       System.out.println("Woof!");
       
       
     }
  
  
  
  public void run(int feet){
      System.out.println("Your dog ran " + feet + " feet!");
      
      
    
}
	public static void main(String[] args) {
    Dog spike = new Dog(3);
    spike.bark();
    spike.run(69);
	}
}


#2

You haven't said which step you are on.

Is it this one?

If so, you have done too much, you will need to reset and go at it again.


#3

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