07 2016 档案
摘要:协变类型返回也是覆盖方法的一种,jdk5开始支持的一种:子类覆盖方法返回可以是子类返回的子类,这个比较拗口 /* * To change this template, choose Tools | Templates * and open the template in the editor. */
阅读全文
摘要:多态值得注意的地方:成员变量,和静态方法是不存在多态的概念的 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.fengli; /*
阅读全文

浙公网安备 33010602011771号