为什么父类的构造方法没有执行???
package project3;public class Animal { public int age; public String name; public void eat() { System.out.println("动物具有吃东西的能力!"); } public Animal() { System.out.println("Animal类执行!"); }}
package project3;public class Dog extends Animal { public Dog() { System.out.println("Dog类执行!"); }}
package project3;public class Inil { public static void main(String[] args) { // TODO Auto-generated method stub Dog dog = new Dog(); dog.age = 10; dog.name = "hh"; dog.eat(); }}
求解答!!!!!