<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
Stuck on Object-Orientated Java task 13.
<In what way does your code behave incorrectly? Include ALL error messages.>
It’s currently displaying this message at the side and not letting me advance. Not sure if my code is correct but here’s the error:
Dog.java:43: error: reached end of file while parsing
}
^
1 error
class Dog {
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(5);
spike.bark();
spike.run(40);
int spikeAge = spike.getAge();
System.out.println(spikeAge);
spike.checkStatus();
}
}
<do not remove the three backticks above>