设计模式之C#实现(二)---Builder[3]

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

本文简介:选择自 cuike519 的 blog

       // specifies an abstract interface for creating parts of a product object.

       //为创建对象的一个部分指定一个接口

       public interface builder{

              void buildparta();

              void buildpartb();

              product getresult();

       }

 

       // constructs and assembles parts of the product by impementing the builder interface.

       // defines and keeps track of the representation it creates.

       // provides an interface for retrieving the product.

       public class concretebuilder1 : builder{

              private product m_product;

本文关键:设计模式,Builder
 

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

go top