Skip to content

Commit

Permalink
auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CyC2018 committed Mar 6, 2018
1 parent b092eb1 commit 159a2a2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions notes/面向对象思想.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,20 @@ S.O.L.I.D 是面向对象设计和编程 (OOD&OOP) 中几个重要编码原则 (
2. 抽象不应该依赖于细节,细节应该依赖于抽象

# 其他常见原则
<<<<<<< HEAD

=======
>>>>>>> b982ddef63d6e69bfbcfb40dbd570af94a734c30
除了上述的经典原则,在实际开发中还有下面这些常见的设计原则。

| 简写 | 全拼 | 中文翻译 |
| -- | -- | -- |
<<<<<<< HEAD
|LoD| The Law of Demeter | 迪米特法则 |
|CRP| The Composite Reuse Principle | 合成复用原则 |
|CCP| The Common Closure Principle | 共同封闭原则 |
=======
|LoD|   The Law of Demeter   | 迪米特法则 |
|CRP|   The Composite Reuse Principle          | 合成复用原则 |
|CCP|   The Common Closure Principle | 共同封闭原则 |
>>>>>>> b982ddef63d6e69bfbcfb40dbd570af94a734c30
|SAP| The Stable Abstractions Principle | 稳定抽象原则 |
|SDP| The Stable Dependencies Principle | 稳定依赖原则 |

## 1. 迪米特法则

<<<<<<< HEAD
迪米特法则又叫作最少知道原则(Least Knowledge Principle 简写LKP),就是说一个对象应当对其他对象有尽可能少的了解,不和陌生人说话。
=======
迪米特法则又叫作最少知道原则(Least Knowledge Principle 简写LKP),就是说一个对象应当对其他对象有尽可能少的了解,不和陌生人说话。
>>>>>>> b982ddef63d6e69bfbcfb40dbd570af94a734c30

## 2. 合成复用原则

Expand All @@ -95,11 +82,7 @@ S.O.L.I.D 是面向对象设计和编程 (OOD&OOP) 中几个重要编码原则 (

## 4. 稳定抽象原则

<<<<<<< HEAD
最稳定的包应该是最抽象的包,不稳定的包应该是具体的包,即包的抽象程度跟它的稳定性成正比。
=======
最稳定的包应该是最抽象的包。不稳定的包应该是具体的包。包的抽象程度跟它的稳定性成正比。
>>>>>>> b982ddef63d6e69bfbcfb40dbd570af94a734c30

## 5. 稳定依赖原则

Expand Down

0 comments on commit 159a2a2

Please sign in to comment.