设计模式之C#实现(一)--AbstractFactory[9]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 cuike519 的 blog

              public void run(){

                     iabstractfactory factory1 = new concretefactory1();

                     iabstractproducta a = factory1.createproducta();

                     a.showself();

                     iabstractproductb b = factory1.createproductb();

                     b.showself();

                     b.showother(a);

              }

       }

}

本文关键:设计模式,AbstractFactory,实现
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top