C#私有构造函数在设计模式中的应用  被引量:1

Application of C# Private Constructor in Design Patterns

在线阅读下载全文

作  者:刘必广[1,2] 

机构地区:[1]福州大学数学与计算机科学学院,福建福州350002 [2]福建交通职业技术学院信息技术与工程系,福建福州350007

出  处:《长春师范学院学报(自然科学版)》2009年第3期66-69,共4页Journal of Changchun Teachers College

基  金:福建省教育厅科技项目(JB07283);福建交通职业技术学院科技发展基金项目(0423)

摘  要:通过对C#私有构造函数的分析与实践,说明了C#私有构造函数在继承性和实例创建等方面对类的影响,列举了C#私有构造函数创建实例的3种方法,指出C#私有构造函数在单体模式和简单工厂模式设计及其在类实例控制中的应用。Through the analysis and practice on C # private constructor, the paper illustrates the impact of the constructor on class in inheritance and ease- formation,and puts forward three methods of ease- formation with C# private construetor. The application of the private constructor in the design of single mode and simple factory and the effect of it in ease control is discussed also.

关 键 词:私有构造函数 实例 单体模式 简单工厂模式 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象