其他类可以通过 implements 关键字来实现这个接口。 } }实现 Animal 的接口 void makeSound() {print("Dog is eating..."); do…