当前位置:首页 > 设计模式

设计模式

  • 最新
  • 浏览
  • 评论

适配器模式

canca19年前 (2007-03-26)457
//适配器模式//CopyRight(C)CAnca Software Office.//Created by CAnca. public class AdapterMode{ public static void main(String[] args){  Adapt...

桥接模式

canca19年前 (2007-03-26)435
//桥接模式//CopyRight(C) CAnca Software Office 2006.//Created by CAnca. import java.util.*; public class BridgeMode{ public static void main(String[]...

代理模式

canca19年前 (2007-03-26)463
//代理模式--真实例子//CopyRight(C)CAnca Software Office.2006//Created by CAnca.   public class ProxyMode_RealWorld{     public static void...

原型模式

canca19年前 (2007-03-26)499
//原型模式//CopyRight(C) CAnca Software Office.2006//Created by CAnca. public class PrototypeMode{ public static void main(String[] args){  ...

建造者模式

canca19年前 (2007-03-26)485
//建造者模式//CopyRight(C)CAnca Software Office.//Created by CAnca. import java.util.*; public class BuilderMode{ public static void main(String[] arg...

工厂方法模式

canca19年前 (2007-03-26)448
//工厂方法模式:现实例子//CopyRight(C)CAnca Software Office. 2006//Created by CAnca. import java.util.*; public class Real_World_Example{ public static void...

单例模式

canca19年前 (2007-03-26)474
//CopyRight CAnca Software Office. 2006//Created by CAnca. import java.util.*; public class singletonMode{ public static void main(String[] args)...

抽象工厂模式

canca19年前 (2007-03-26)416
//抽象工厂模式//Copyright CAnca Software office//Created by CAnca.2006public class AbstractFactory{ public static void main(String[] args){  ...