摘要
构造函数和析构函数是面向对象程序设计中的难点。构造函数有三种情况,在重载赋值运算符时一定要分清楚。动态内存应在适当的时候通过析构函数进行回收。
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.
出处
《安阳工学院学报》
2005年第3期10-11,共2页
Journal of Anyang Institute of Technology
关键词
面向对象
构造函数
析构函数
object -oriented
the construction function
the destruction function