本案例是爲了驗證繼承中 父類與子類 靜態方法,實例方法,同名屬性的的關係 ---繼承?重寫? 隱藏 ?

/**  * 本案例是爲了驗證繼承中 父類與子類 靜態方法,實例方法,同名屬性的的關係 ---繼承?重寫? 隱藏 ? *  * @author 張永志 [email protected]  */ class Father {     String id = "010";     String name = "Father";     public static int age = 30;     
相關文章
相關標籤/搜索