自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 动态代理

what Provide a surrogate or placeholder for another object to control access to it.(为其他对象提供一种代理以控制对这个对象的访问。 ) why 横切面编程, 在不改变我们已有代码结构的情况下增强或控制对象的行为 how 被代理的接口类 public interface IGamePlayer {

2015-08-27 22:36:23 148

原创 建造者模式

What Separate the construction ofa complex object from its representation so that the same construction process can create different representations.(将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示。) why 封装性

2015-08-26 22:07:36 160

原创 模板方法模式

what Define the skeleton ofan algorithm in an operation,deferring some steps to subclasses.Template Method lets subclasses redefine certain steps ofan algorithm without changing the algorithm's str

2015-08-17 22:12:47 247

原创 抽象工厂模式

what Provide an interface for creating families ofrelated or dependent objects without specifying their concrete classes.(为创建一组相关或相互依赖的对象提供一个接口,而且无须指定它们 的具体类。 ) why  封装性,每个产品的实现类不是高层模块要关心的,只由

2015-08-17 21:38:07 180

原创 工厂模式

what Define an interface for creating an object,but let subclasses decide which class to instantiate.Factory Method lets a class defer instantiation to subclasses.(定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个

2015-08-15 11:23:42 170

原创 单例模式

what Ensure a class has only one instance, and provide a global point ofaccess to it.(确保 某一个类只有一个实例, 而且自 行实例化并向整个系统提供这个实例。 ) 单例模式的通用类图如图7-2所示。 why 单例模式在内存中只有一个实例, 减少了内存开支 单例模式可以避免对资源的多重占

2015-08-08 09:50:01 173

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除