摘要: 1. 在子类中,若要调用父类中被覆盖的方法,可以使用super关键字。 以以下代码为例解释: package homework; class Grandfather{ public Grandfather(){ System.out.println("Grandfather created. "); 阅读全文
posted @ 2017-11-08 19:22 Someday&Li 阅读(518) 评论(0) 推荐(0) 编辑