2008年3月28日 星期五

Pratical in Java- 6 必要時才使用instanceof

* 實踐06:必要時才使用instanceof
* 嗯,如書上寫就是這樣子
* 名詞解釋:
* 從base class轉型到derived class,稱之為down casting
* 從derived class轉型到base class,稱之為promotion

沒有留言: