摘要
构造函数的实现使C++的类机制得以充分的展示,它的设计与应用,直接影响编译程序处理对象的方式。本文以C++构造函数为主线,详细阐述了C++面向对象程序设计方法的实现过程,并针对设计过程中应该注意的问题进行了深入分析。实践证明,正确理解并合理应用C++构造函数是面向对象程序设计中的关键。
The realization of constructor gives the full play of the class-mechanism of C++. The design and application of the constructor affect the modes of dealing with the object. Based on C++ constructor, this paper elaborates the realization of object-oriented programming(OOP) of C+ +, and analyzes the problems needing attention in the designing process. Practice ,has proved that the correct understanding and reasonable application of the constructor of C++ are the keys to OOP.
出处
《电气电子教学学报》
2006年第6期83-85,共3页
Journal of Electrical and Electronic Education