Within the main method of the Dog class, call the checkStatus method on the spike object.stuk in this exercise plz help me out


#1



Replace this line with your code.


#2

please present the code you were using upontill this question ....


#3

class Dog extends Animal{
  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 int getAge() {

    return age;

}
	public static void main(String[] args) {
    Dog spike = new Dog(10);
		spike.bark();
    spike.run(5000);
    int spikeAge = spike.getAge();
        System.out.println(spikeAge);
    spike.checkstatus();
	}

}

#4

have you tried to look at answers
after a google search
spike checkstatus site:codecademy.com


#5

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