2712 月 适配器模式 by shawn 设计模式 定义:Convert the interface of a class into another interface clients expect.Adapter lets classes worktogether that couldn’t otherwise because of incompatible interfaces.(将一个类的接口变换成客户端所期待的另一种接口,从而使原本因接口不匹配而无法在一起工作的两个类能够在一起工作。) Read More
1711 月 代理模式 by shawn 设计模式 定义:Provide a surrogate or placeholder for another obiject to control access to it . (为其他对象提供一种代理以控制对这个对象的访问。) Read More