面向對象核心技術

類的繼承 只支持單繼承、即一個子類只能繼承一個父類web child extends parents 重寫父類dom 重寫時不能下降方法的修飾權限範圍,父類的protected能夠改成public ,但不能privateide parents a=new child(); //父類聲明,子類實現 child a=new parents();//這是錯誤的 super關鍵字svg super.pro
相關文章
相關標籤/搜索