this.super.小結

instanceof 判斷變量是不是哪一個類的變量     引用變量 instanceof 類名     Person p = new Student();     boolean b = p instance of Student;     //在繼承中使用,有繼承關係 向上轉型;Person p = new Student();student類轉爲Person類     若父類沒有的方法,建立
相關文章
相關標籤/搜索