1、什么是策略模式? Define a family of algorithms, encapsulate each one, and make them interchangeable. S ...
1、什么是策略模式? Define a family of algorithms, encapsulate each one, and make them interchangeable. S ...
1、什么是适配器模式? Convert the interface of a class into another interface clients expect.Adapter lets ...
1、什么是享元模式? Use sharing to support large numbers of fine-grained objects efficiently. 享元模式(Fly ...
1、什么是单例模式? 采取一定的办法保证在整个软件系统中,单例模式确保对于某个类只能存在一个实例。有如下三个特点: ①、单例类只能有一个实例 ②、单例类必须自己创建自己的实例 ...
1、什么是原型模式 Specify the kinds of objects to create using a prototypical instance,and create new ob ...
1、什么是观察者模式? Define a one-to-many dependency between objects so that when one object changes stat ...
1、什么是桥接模式? Decouple an abstraction from its implementation so that the two can vary independentl ...
1、什么是装饰器模式? Attach additional responsibilities to an object dynamically keeping the same interfa ...
1、什么是工厂模式 Define an interface for creating an object,but let subclasses decide which class toins ...
1、什么是模板模式? Define the skeleton of an algorithm in an operation, deferring some steps to subclass ...