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

构造函数与析构函数浅析
引用本文:付卫红,刘建华.构造函数与析构函数浅析[J].安阳工学院学报,2005(3):10-11.
作者姓名:付卫红  刘建华
作者单位:安阳工学院,河南,安阳,455000;安阳工学院,河南,安阳,455000
摘    要:构造函数和析构函数是面向对象程序设计中的难点.构造函数有三种情况,在重栽赋值运算符时一定要分清楚.动态内存应在适当的时候通过析构函数进行回收.

关 键 词:面向对象  构造函数  析构函数
文章编号:1673-2928(2005)03-0010-02
收稿时间:2004-12-24
修稿时间:2004年12月24日

Analysis of the Construction Function and the Destruction Function
FU Wei-hong,LIU Jian-hua.Analysis of the Construction Function and the Destruction Function[J].Journal of Anyang Institute of Technology,2005(3):10-11.
Authors:FU Wei-hong  LIU Jian-hua
Abstract:The construction function and the destruction function are difficult parts in object - oriented programming design. As the construction function has three kinds of different conditions, assignment operator overriding must be given attention. The dynamic EMS memory should be reclaimed by way of the destruction function at a proper time.
Keywords:object -oriented  the construction function  the destruction function
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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