Object Orientated Java: 12/13


#1



Stuck on Object-Orientated Java task 13.


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();

	}

}


#2

Update:
I managed to fix the issue! :smiley:
It was to do with the fact I added another line (class Dog extends Animal {) instead of editing the first one (class Dog {).


#3