Java_Design_Patterns書大致翻譯

使用設計模式的好處

  • 行業標準
  • 節省時間
  • 代碼強壯,易讀,可複用

設計模式分爲三類

  • 創造設計模式
    解決方向:解決創建實例問題
    原文:The basic form of object creation could result in design problems or add unwanted complexity to the design (基本的創建對象將導致設計問題,或者給設計增加複雜度)
  • 結構設計模式
    解決方向:提供不同的方式創建類的結構
    原文:Structural patterns provide different ways to create a class structure, for
    example using inheritance and composition to create a large object from
    small objects
  • 行爲設計模式

創建型設計模式

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章