Share Email Print
cover

Proceedings Paper

Discussion on copy constructor in C++ programming language
Author(s): Fafen Luo; Ruiqing Du
Format Member Price Non-Member Price
PDF $14.40 $18.00

Paper Abstract

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.

Paper Details

Date Published: 13 January 2012
PDF: 8 pages
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); doi: 10.1117/12.920087
Show Author Affiliations
Fafen Luo, Tangshan Normal Univ. (China)
Ruiqing Du, Tangshan Normal Univ. (China)


Published in SPIE Proceedings Vol. 8350:
Fourth International Conference on Machine Vision (ICMV 2011): Computer Vision and Image Analysis; Pattern Recognition and Basic Technologies

© SPIE. Terms of Use
Back to Top