
设计模式
中原一秋风
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
设计模式--代理模式
[code="java"]/** * @author Rollen-Holt 设计模式之 代理模式 */ interface NetWork{public abstract void browser(); } /** * Real 类代表用户上网的实际动作,比如查看网页 * */class Real implements NetWork{public void...原创 2012-02-01 11:57:10 · 135 阅读 · 0 评论 -
设计模式--工厂模式
[code="java"]/** * @author Rollen-Holt 设计模式之 工厂模式 */ interface fruit{ public abstract void eat(); } class Apple implements fruit{public void eat(){System.out.println("Apple")...原创 2012-02-01 12:11:58 · 152 阅读 · 0 评论 -
设计模式---单例模式
code="java"]/** * @version 1.0 * @author Rollen-Holt * 设计模式之 ---单例模式 * */ class hello{ private hello(){ System.out.print("hello"); } publ...原创 2012-02-01 12:13:04 · 173 阅读 · 0 评论 -
设计模式---适配器模式
[code="java"]/** * @author Rollen-Holt 设计模式之 適配器模式 */ interface window{ void open(); void close(); void activated(); void iconified(); } abstract class Win...原创 2012-02-01 12:13:20 · 173 阅读 · 0 评论