主題
:
關於多型(polymorphism)、overloading
瀏覽單個文章
T磨人v2
*停權中*
加入日期: Mar 2014
文章: 49
其實 interface 我個人覺得也是可以實作成多型 , Ex 如下 (個人淺見 高手們 笑笑就好)
interface IWoman{
public bool isBeauty();
{
class 林志玲 implements IWoman {
public bool isbeauty() { return true; }
}
class 如花 implements IWoman {
public bool isbeauty() { return false; }
}
2015-03-06, 09:41 AM #
5
T磨人v2
瀏覽公開訊息
傳送私人訊息給T磨人v2
查詢T磨人v2發表的更多文章
增加 T磨人v2 到好友清單