<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    我的隱式生活(My Implicit Life)

    繼續搞“對象”,玩OO.

    首頁 新隨筆 聯系 聚合 管理
      11 Posts :: 1 Stories :: 39 Comments :: 0 Trackbacks

    The interfaces that are concerned with holding objects are Collection, List, Set, and Map.Ideally, you’ll write most of your code to talk to these interfaces, and the only place where you’ll specify the precise type you’re using is at the point of creation. So you can create a List like this:

    List x = new LinkedList();


    Of course, you can also decide to make x a LinkedList (instead of a generic List)and carry the precise type information around with x. The beauty (and the intent) of using the interface is that if you decide you want to change your implementation, all you need to do is change it at the point of creation, like this:

    List x = new ArrayList();


    The rest of your code can remain untouched (some of this genericity can also be achieved with iterators).

    操。以前怎么就沒人這么講過呢。媽的,都是垃圾!

    posted on 2006-09-01 17:16 marco 閱讀(237) 評論(0)  編輯  收藏 所屬分類: -=Design Pattern=-

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 久久亚洲精品AB无码播放| 免费在线视频一区| 亚洲综合精品一二三区在线| 中文字幕免费在线看| 亚洲综合最新无码专区| h视频在线免费观看| 国内精品久久久久久久亚洲| 中文字幕免费观看全部电影| 亚洲精品tv久久久久久久久 | 国产精品亚洲综合一区| 一区二区免费电影| 亚洲熟妇中文字幕五十中出| 中文字幕在线视频免费| 亚洲av日韩av无码黑人| 84pao强力永久免费高清| 最近2019中文免费字幕在线观看| 国产V亚洲V天堂无码久久久| 免费在线看污视频| 亚洲伊人久久精品| 免费的一级片网站| 又硬又粗又长又爽免费看| 亚洲国产另类久久久精品小说| 99精品视频在线观看免费播放| 亚洲日韩乱码久久久久久| 午夜影视在线免费观看| 一级毛片完整版免费播放一区| 亚洲精品国产字幕久久不卡| 精品国产免费人成电影在线观看| 亚洲精品GV天堂无码男同| 国产成人精品久久亚洲| 91麻豆国产免费观看| 亚洲日产乱码一二三区别| 亚洲伊人久久综合中文成人网| 无码精品一区二区三区免费视频 | 亚洲第一AAAAA片| 国产在线国偷精品产拍免费| 农村寡妇一级毛片免费看视频| 亚洲欧洲日产国码久在线观看 | 你懂的在线免费观看| 亚洲人成伊人成综合网久久| 亚洲Av无码乱码在线播放|