设计模式gof_四个(GoF)设计模式的帮派

设计模式gof

Gangs of Four Design Patterns is the collection of 23 design patterns from the book “Design Patterns: Elements of Reusable Object-Oriented Software”.

四种设计模式的帮派是《设计模式:可重用的面向对象软件的元素》一书中的23种设计模式的集合。

Gangs Of Four Design Patterns Book

Gangs Of Four Design Patterns Book

四个设计模式书的帮派

This book was first published in 1994 and it’s one of the most popular books to learn design patterns. The book was authored by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. It got nicknamed as Gangs of Four design patterns because of four authors. Furthermore, it got a shorter name as “GoF Design Patterns”.

这本书于1994年首次出版,是学习设计模式的最受欢迎的书籍之一。 该书由Erich Gamma,Richard Helm,Ralph Johnson和John Vlissides撰写。 由于四位作者,它被昵称为“四个设计模式的帮派”。 此外,它的简称为“ GoF设计模式”。

GoF设计模式类型 (GoF Design Pattern Types)

GoF Design Patterns are divided into three categories:

GoF设计模式分为三类:

  1. Creational: The design patterns that deal with the creation of an object.

    Creational :涉及对象创建的设计模式。
  2. Structural: The design patterns in this category deals with the class structure such as Inheritance and Composition.

    结构 :此类别中的设计模式涉及类结构,例如继承和组成。
  3. Behavioral: This type of design patterns provide solution for the better interaction between objects, how to provide lose coupling, and flexibility to extend easily in future.

    行为的 :这种类型的设计模式提供了解决方案,以实现对象之间更好的交互,如何提供丢失耦合以及将来轻松扩展的灵活性。

创新设计模式 (Creational Design Patterns)

There are 5 design patterns in the creational design patterns category.

创新设计模式类别中有5个设计模式。

Pattern Name Description
Singleton The singleton pattern restricts the initialization of a class to ensure that only one instance of the class can be created.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值