星期四, 十二月 01, 2005
Learning about static construct function
http://blog.joycode.com/ghj/archive/2004/08/24/31504.aspx Using the static construct function, we can realize that the many subclass only realize the base class's construct function once. Many class need to call a function Send of a Controller class, therefore the Controller is used as base class. But the pipeline is unique, therefore it can only be initialized once, to build a pipeline. Therefore, the pipeline is initialized in construct function, and because the subclass will also call the construct function of the base class, I use the static construct function. Reading the blog articles, I found it fit for this status.
订阅:
博文评论 (Atom)
没有评论:
发表评论