//MyFactoryMethod using System; using System.Collections; //SinglePage class,which build the at last
//MyComposite using System; using System.Collections; //----------------------------------Class Fi
工厂方法的目的很明确就是定义一个用来创建对象的接口,但是他不直接创建对象,而由他的子类来创建,这样一来就将创建对象的责任推迟到了该接口的子类中,创建什么类型的对象由子类来决定,而创建对象的时间由接口来
//MyPrototype using System; using System.Collections; //abstract PageStylePrototype Class 'Prototype
//MyAbstractFactory using System; ///////////////Basic Products//////////////// //AbstractProduct
//MyBridge using System; //-------------------------------------------------Class Manager //parent
//MyAdapter using System; //Class1 class SimpleDrawer { //Methods virtual public void SetColor(str
//MySingleton using System; //SingletonPage Class class SingletonPage { //Fields protected static
//MyBuilder using System; using System.Collections; ///////////////////////product////////////////
我的程序人生——my first article in csdn blob 我的程序人生——my first article in csdn blob 刚参加工作的