java 深刻理解多態

 推薦播客:this

http://developer.51cto.com/art/200906/130414.htmhtm

 

重要plugin

實際上這裏涉及方法調用的優先問題 ,優先級由高到低依次爲:this.show(O)、super.show(O)、this.show((super)O)、super.show((super)O)方法

相關文章
相關標籤/搜索