上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: (1)Game.class.php (抽象父类,模板类) (2)Cricket.class.php (具体子类) (3)Football.class.php (具体子类) (4)template.php 阅读全文
posted @ 2018-06-11 17:31 周起 阅读(941) 评论(0) 推荐(0) 编辑
摘要: (1)Strategy.class.php(策略抽象接口) (2)OperationAdd.class.php(加操作具体类) (3)OperationSubstract.class.php(减操作具体类) (4)OperationMultiply.class.php(乘操作具体类) (5)stra 阅读全文
posted @ 2018-06-11 13:56 周起 阅读(327) 评论(0) 推荐(0) 编辑
摘要: (1)AbstractCustomer.class.php(抽象父类) (2)RealCustomer.class.php (真实用户类) (3)NullCustomer.class.php (空对象代替类) (4)CustomerFactory.class.php (用户工厂类) (5)nullO 阅读全文
posted @ 2018-06-11 11:35 周起 阅读(394) 评论(0) 推荐(0) 编辑
摘要: (1)State.class.php(接口,规定实现方法) (2)Context.class.php (带有某个状态的类) (3)StartState.class.php(具体的开始状态类) (4)StopState.class.php(具体的结束状态类) (5)state.php(客户端类) 阅读全文
posted @ 2018-06-10 23:05 周起 阅读(228) 评论(0) 推荐(0) 编辑
摘要: (1) Subject.class.php(目标类) (2)Observer.class.php(观察者抽象父类) (3)ObjectA.class.php (具体抽象类A) (4)ObserverB.class.php(具体观察者B) (5)observer.php 阅读全文
posted @ 2018-06-10 21:20 周起 阅读(3306) 评论(0) 推荐(0) 编辑
摘要: 备忘录模式使用三个类 Memento、Originator 和 CareTaker。Memento 包含了要被恢复的对象的状态。Originator 创建并在 Memento 对象中存储状态。Caretaker 对象负责从 Memento 中恢复对象的状态。 (1)Memento.class.php 阅读全文
posted @ 2018-06-10 19:52 周起 阅读(158) 评论(0) 推荐(0) 编辑
摘要: (1)ChatRoom.class.php(聊天室类) (2)User.class.php (用户类) (3)mediator.php(客户端) 阅读全文
posted @ 2018-06-10 18:55 周起 阅读(238) 评论(0) 推荐(0) 编辑
摘要: (1)Iterator.class.php(接口) (2) ConcreteIteratior.class.php (3)iterator.php (客户端) 阅读全文
posted @ 2018-06-08 17:03 周起 阅读(223) 评论(0) 推荐(0) 编辑
摘要: github地址:https://github.com/ZQCard/design_pattern (1)AbstractLogger.class.php(抽象日志父类) (2)ErrorLogger.class.php(错误级别日志处理类) (3)DebugLogger.class.php(调试级 阅读全文
posted @ 2018-06-08 00:51 周起 阅读(332) 评论(0) 推荐(0) 编辑
摘要: github地址:https://github.com/ZQCard/design_pattern (1)Image.class.php(接口) (2)RealImage.class.php (3)ProxyImage.class.php(代理类) (4)proxy.php 阅读全文
posted @ 2018-06-07 18:15 周起 阅读(1064) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页