首页 | 本学科首页   官方微博 | 高级检索  
     

OOP中对象初始化机制的深入分析
引用本文:王樱,徐雨明. OOP中对象初始化机制的深入分析[J]. 衡阳师范学院学报, 2006, 27(3): 94-96
作者姓名:王樱  徐雨明
作者单位:衡阳师范学院,计算机系,湖南,衡阳,421008;湖南大学,计算机与通信学院,湖南,长沙,410082
基金项目:湖南省教育厅青年项目(05B055),衡阳师范学院资助项目(2005)
摘    要:通过对C 语言的深入分析,总结了不同类型对象的初始化方法。详细分析了C 中构造函数和拷贝构造函数,并通过具体应用实例深入探讨了构造函数在组合类、派生类中的不同作用规则。

关 键 词:  对象  初始化  构造函数
文章编号:1673-0313(2006)03-0094-03
收稿时间:2006-01-03
修稿时间:2006-01-03

Analysis of Initializing Various Objects in OOP
Wang Ying,Xu Yu-ming. Analysis of Initializing Various Objects in OOP[J]. journal of Hengyang Normal University, 2006, 27(3): 94-96
Authors:Wang Ying  Xu Yu-ming
Affiliation:1. Department of Computer Science, Hengyang Normal University, Hengyang Hunan 421008, China; 2. College of Computer and Communications, Hunan University, Changsha Hunan 410082, China
Abstract:This paper summarizes the methods of initializing various objects in OOP.Through C language,We analysed the constructor and the copy-constructor in C and discussed the defferent use of constructor in combined class,derivative class through illustrating.
Keywords:class  object  initializing  constructor
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号