<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=-

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


    網站導航:
     
    主站蜘蛛池模板: 亚洲国产精品一区第二页 | 无码一区二区三区免费| 亚洲视频在线免费观看| jyzzjyzz国产免费观看| 亚洲人成无码www久久久| 国产成人综合亚洲绿色| 免费观看四虎精品国产永久| 亚洲A∨精品一区二区三区下载| 美女黄网站人色视频免费国产| 亚洲日本va一区二区三区| 曰皮全部过程视频免费国产30分钟| 亚洲粉嫩美白在线| 国产婷婷高清在线观看免费| 国产亚洲精品91| 国产成人精品久久亚洲| 污视频在线观看免费| 亚洲日韩中文字幕天堂不卡 | 在线观看肉片AV网站免费| 1000部国产成人免费视频| 亚洲国产区男人本色在线观看| 一级毛片在线免费观看| 亚洲高清无在码在线电影不卡| 久久免费视频99| 亚洲欧洲中文日产| 成人免费视频小说| 免费视频成人国产精品网站 | 久久一本岛在免费线观看2020 | 亚洲精品一二三区| 免费大片黄手机在线观看| 色www永久免费网站| 91亚洲精品麻豆| 国产免费牲交视频| 三年片在线观看免费| 亚洲天堂2016| 亚洲AV网站在线观看| 国产拍拍拍无码视频免费| 日韩a毛片免费观看| 成人免费视频网址| 国产精品免费久久久久影院| 亚洲国产高清在线| 日本不卡在线观看免费v|