Inheritance 12/13 help

Where am i going wrong i cant seem to work it out

<In what way does your code behave incorrectly? Include ALL error messages.>

class Dog {
  class Dog extends Animal {
  int age;

    public Dog(int dogsAge) {
      age = dogsAge;
  public void bark() {
  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);
    int spikeAge = spike.getAge();



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