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

C++构造函数的剖析
引用本文:宋初一,格日乐图,姜静清,姜明晨. C++构造函数的剖析[J]. 内蒙古民族大学学报(自然科学版), 2003, 18(6): 502-503
作者姓名:宋初一  格日乐图  姜静清  姜明晨
作者单位:1. 福耀集团通辽有限公司,内蒙古,通辽,028052
2. 阿拉善盟师范学校,物理教研室,内蒙古,巴彦浩特,750300
3. 内蒙古民族大学,数学与计算机科学学院,内蒙古,通辽,028043
4. 内蒙古通辽农牧机械化研究所,内蒙古,通辽,028000
摘    要:详细分析了C 中构造函数和拷贝构造函数的作用,并深入探讨了构造函数在组合类、派生类、虚基类及其派生类中的不同作用规则,对其中一些作用规则给出具体应用实例。

关 键 词:构造函数 组合类 派生类 C++ 虚基类 作用规则
文章编号:1671-0185(2003)06-0502-02
修稿时间:2003-01-06

The Analysis of Constructor in C + +
SONG Chu - yi,Gerilatu JIANG Jing - qing JIANG Ming - chen. The Analysis of Constructor in C + +[J]. Journal of Inner Mongolia University for the Nationalities(Natural Sciences), 2003, 18(6): 502-503
Authors:SONG Chu - yi  Gerilatu JIANG Jing - qing JIANG Ming - chen
Abstract:In this paper, we analysed the constructor and the copy - constructor in C+ + and argued the different rules of constructor in combined class,derivative class, virtual based class and its derivative class. We illustrated some of them.
Keywords:Class  Constructor  Combinated class  Derived class
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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