<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 閱讀(226) 評論(0)  編輯  收藏 所屬分類: -=Design Pattern=-

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


    網站導航:
     
    主站蜘蛛池模板: 亚洲国产精品成人网址天堂| 日本一道一区二区免费看 | 亚洲高清国产拍精品熟女| 国产免费不卡视频| 亚洲欧洲综合在线| 九九视频高清视频免费观看| 亚洲av再在线观看| 一级毛片人与动免费观看| 美女内射无套日韩免费播放| 国产精品免费看香蕉| 亚洲精华国产精华精华液| 国产公开免费人成视频 | 亚洲色婷婷综合久久| 亚洲综合成人婷婷五月网址| 成人免费午夜在线观看| 色偷偷亚洲男人天堂| 亚洲男人的天堂在线va拉文| 亚洲成a人片在线不卡| 免费羞羞视频网站| 一级做a爰片性色毛片免费网站| 成人女人A级毛片免费软件| 亚洲午夜无码久久久久小说| 免费观看亚洲人成网站| 亚洲一级毛片视频| 国产高清在线免费视频| 好湿好大好紧好爽免费视频| 亚洲视频在线观看免费视频| 在线a毛片免费视频观看| 羞羞视频在线观看免费| 亚洲欧洲在线观看| 免费高清在线爱做视频| 中文毛片无遮挡高清免费| 亚洲福利一区二区| 国产一级淫片a免费播放口之| 亚洲日韩中文字幕一区| 亚洲精品无码激情AV| 最近高清中文字幕免费| 亚洲男人的天堂在线播放| 国产精品深夜福利免费观看 | 成人免费观看一区二区| 亚洲视频在线观看一区|