嘀嘀嘀~~~  页面这在飞快的跑来 . . .

吴李曾
面向对象设计七大原则 面向对象设计七大原则
存在的根本原因是为了更好的复用代码增加代码的可维护性,这些原则并不是孤立存在的,他们相互依赖,相互补充。 开闭原则(Open Close Principle)软件实体(包括类、模块、功能等)应该对扩展开放,但是对修改关闭。 对扩展开放
2020-07-13
设计模式之工厂模式 设计模式之工厂模式
The Simple Factory、The Factory Method 、The Abstract Factory
2020-05-06
设计模式之单例模式 设计模式之单例模式
The Singleton Pattern ensure a class has only one instance, and provides a global point of access to it.
2020-05-05
设计模式之适配器模式 设计模式之适配器模式
The Adapter Pattern converts the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
2020-05-02
设计模式之状态模式 设计模式之状态模式
The State Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class.
2020-04-30
设计模式之外观模式 设计模式之外观模式
The Facade Pattern provides a unified interface to a set of interfaces in subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
2020-04-24
设计模式之装饰者模式 设计模式之装饰者模式
The Decorator Pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
2020-04-22
设计模式之模板方法模式 设计模式之模板方法模式
The Template Method Pattern defines the skeleton of an algorithm in a method, deferring some steps to subclasses. Template Method lets subclass redefine certain steps of an algorithm without changing the algorithm's structure.
2020-04-22
设计模式之观察者模式 设计模式之观察者模式
The Observer Pattern defines as one-to-many dependcy between objects so that when one object changes state, all if its depends are notified and updated automatically.
2020-04-20
设计模式之策略模式 设计模式之策略模式
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
2020-04-12
设计模之命令模式 设计模之命令模式
The Command Pattern encapsulates a request as an object, thereby letting you parameterize other objects with different requests, qucue or log requests, and support undoable operations.
2020-04-11