public class JavaDemo{public static void main(String[] args){Animal c = new cat();c.goto();}} interface class Animal{void goto()}class cat implements Animal{void goto(){System.out.println("行走");}}
没看懂问题是什么意思?程序还是结构不懂?