Design pattern

1. All patterns provide a way to let some part of a system vary independently of all other parts.

2. Leave the class working well, and change the others.

3. Program to an interface, not an implementation.

原文地址:https://www.cnblogs.com/henyihanwobushi/p/2699420.html