JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Software Design  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Part24 [DP] Prototype Pattern [Re:koji]
koji

秒速5センチメートル

站長

發文: 8415
積分: 19
於 2004-03-29 21:07 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Part24 [DP] Prototype Pattern

∧_∧  敲敲敲  ╱
(    )  ∧ ∧ < 等於是說利用來copy&paste製作實體..恩....。
(    )  (,,゚Д゚)  ╲____________
______ (つ_つ____
|   日∇ ╲|ThinkPad|╲
|      =========  ╲

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
____________

| 喔~、是Prototype Pattern嗎?
╲ __ __________
  |╱
  ∧_∧       ╱
  ( ・∀・)  ∧ ∧ < 你你是誰?...有..有什麼事嬤你?・・・
  (  ⊃ )  (゚Д゚;)  ╲____________
________(つ_つ____
|    日∇ ╲|ThinkPad|╲
|       =========  ╲

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__________

| 利用實體來製作實體..恩
╲ __ ________
  |╱
  ∧_∧       ╱
  ( ・∀・)  ∧ ∧ < 恩..可以那樣說...類別變成配角.
 (     )  (;゚Д゚)  ╲____________
_____ (つ_つ____
|     日∇╲|ThinkPad|╲
|       =========  ╲

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__________

| 把類別的設計失敗,在實體修正.恩.
╲ __ ________
  |╱
 ∧_∧       ╱
 ( ・∀・)  ∧ ∧ < 不..不是這樣拉..
 (  ⊃ )  (゚Д゚;) ╲____________
_____(つ_つ____
|   日∇ ╲|ThinkPad|╲
|      =========  ╲
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
giko.clone()

    ∧ ∧        ┌────────────────
   ( ゚Д゚ )       < giko.clone()
    U  U        └────────────────
     |  |
    U U

    ∧ ∧ ∧      ┌────────────────
   ( ゚Д ゚Д゚ )     < 這這是、
    U  U  U      .└────────────────
     |    |
    U U U

    ∧ ∧∧∧     ┌────────────────
   ( ゚Д゚ ゚Д゚ )    < 到底到底是、
    U U.U  U     └────────────────
     |     |
    .U UU U

    ∧ ∧   ∧ ∧   ┌────────────────
   ( ゚Д゚ >< ゚Д゚ )  < 是shallow copy是shallow copy嗎
    U  U  U  U   └────────────────
     |   ><  |
    .U U   U U

.    ∧ ∧   ∧ ∧  ┌────────────────
    ( ゚Д゚ ) * ( ゚Д゚ ) < 或是deep copy。或是 deep copy。
    U  U   U  U  └────────────────
     |  .| .* |  |
     U U   .U U- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

from http://www.hyuki.com/dp/cat_Prototype.html


koji edited on 2004-03-29 21:15
reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
22217 [精華] A GIKO CATalog of Design Patterns(Giko貓談DP 四格漫畫) koji 641 2003-07-23 02:14
18464 Part1 Giko貓與DP koji 1571 2003-07-23 02:29
17300 Part12 [DP] Iterator Pattern [Re:koji] koji 1623 2004-01-29 04:01
17222 Re:Part13 [DP] Visitor Pattern [Re:koji] koji 1722 2004-01-29 04:17
17732 Part14 [DP] Strategy Pattern koji 1766 2004-01-29 04:28
17422 Part15 [DP] Facade Pattern koji 2944 2004-03-12 11:52
16939 Part16 [DP] Chain of Responsibility Pattern koji 1807 2004-03-29 20:12
17121 Part17 [DP] Command Pattern koji 1752 2004-03-29 20:14
17129 Part18 [DP] Composite Pattern koji 1748 2004-03-29 20:17
18656 Part19 [DP] Decorator Pattern koji 1597 2004-03-29 20:21
17099 Part20 [DP] Interpreter Pattern koji 1757 2004-03-29 20:26
16739 Part21 [DP] Mediator Pattern koji 2196 2004-03-29 20:37
16808 Part22 [DP] Memento Pattern koji 2377 2004-03-29 20:47
18249 Part2 [DP] Abstract Factory Pattern koji 1608 2003-07-23 02:30
17097 Part23 [DP] Observer Pattern koji 1793 2004-03-29 20:55
21034 Part24 [DP] Prototype Pattern koji 2743 2004-03-29 21:07
18139 Part3 [DP] Singleton pattern koji 1568 2003-07-23 02:34
18150 Part4 [DP] Builder Pattern koji 1592 2003-07-23 02:36
18127 Part5 [DP] Bridge Pattern koji 1566 2003-07-23 02:36
18403 Part6 [DP] Factory Method Pattern koji 1633 2003-07-24 16:16
19750 Part7 [DP] Proxy Pattern [Re:koji] koji 1767 2003-08-08 20:35
17899 Part8 [DP] State Pattern [Re:koji] koji 2237 2003-08-08 21:02
17701 Part9 [DP] Template Method Pattern [Re:koji] koji 1530 2003-08-25 16:19
18112 Part10 [DP] Adapter Pattern koji 1588 2003-10-19 20:20
17498 Part11 [DP] Flyweight Pattern koji 2489 2003-10-19 20:27
» JWorld@TW »  Software Design

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8