07 2020 档案

摘要:类的继承中方法重写需要保证方法为非静态方法,若为静态方法会出现以下问题。 现象演示 正常非静态方法: public class Father { public void test(){ System.out.println("I'm father"); } } public class Son ex 阅读全文
posted @ 2020-07-14 19:10 Karber 阅读(7) 评论(0) 推荐(0)