图中在主函数的showFly出现了“cannot be referenced from a static context”错误,是因为主函数本身是static,新建的方法showFly中没有输入static,所以正确写法要为public static void showFly(FlyAble f)
图中在主函数的showFly出现了“cannot be referenced from a static context”错误,是因为主函数本身是static,新建的方法showFly中没有输入static,所以正确写法要为public static void showFly(FlyAble f)
相关文章: