给定代码:收起
java
复制
interface AnimalSound {
void makeSound();
}
class Dog implements AnimalSound {
@Override
public void makeSound() {
System.out.println("Woof Woof");
}
}
public class Test {
public static void main(String[] args) {
AnimalSound a = new Dog();
a.makeSound();
}
}
输出结果是( )