class Animal {
void eat() {
System.out.println("This animal eats food.");
}
}
class Dog extends Animal {}
public class Test {
public static void main(String[] args) {
Dog d = new Dog();
d.eat();
}
}
What will be the output of the program above?