Skip to content

设计模式:参考 GOF-23,要点摘录与不同语言的代码实现

Notifications You must be signed in to change notification settings

JimryYchao/Design_Patterns

Repository files navigation


1. 七大原则 (Principles of Design Patterns)

  • 开闭原则 (Open Closed Principle,OCP)
  • 里氏替换原则 (Liskov Substitution Principle,LSP)
  • 依赖倒置原则 (Dependence Inversion Principle,DIP)
  • 单一职责原则 (Single Responsibility Principle,SRP)
  • 接口隔离原则 (Interface Segregation Principle,ISP)
  • 迪米特法则 (Law of Demeter,LOD) 又叫最少知识原则 (Least Knowledge Principle,LKP)
  • 合成复用原则 (Composite Reuse Principle,CRP) 又叫组合/聚合复用原则 (Composition/Aggregate Reuse Principle,CARP)

2. 创建型模式 (Creational Patterns)


3. 结构型模式 (Structural Patterns)


4. 行为型模式 (Behavioural Patterns)



About

设计模式:参考 GOF-23,要点摘录与不同语言的代码实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages