Translator Disclaimer
13 January 2012 Discussion on copy constructor in C++ programming language
Author Affiliations +
C++ is a widely used object-orientated programming language in the software industry. The purpose of this paper is to discuss concept and application of the copy constructor, a special constructor in C++. As fundamental knowledge, constructor and destructor were introduced at first. Several examples of copy constructor were presented to illustrate concept of copy constructor and its use. Shallow copy and deep copy were also presented. After discussions on copy constructor by analyzing all the examples of copy constructor, the conclusion was made about that how to define a copy constructor and how to use it properly.
© (2012) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Fafen Luo and Ruiqing Du "Discussion on copy constructor in C++ programming language", Proc. SPIE 8350, Fourth International Conference on Machine Vision (ICMV 2011): Computer Vision and Image Analysis; Pattern Recognition and Basic Technologies, 835025 (13 January 2012);

Back to Top