Jump to content

Copy constructor (C++)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cheesy UK (talk | contribs) at 18:18, 21 March 2004 (New page.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In computing, a copy constructor is a constructor which takes a (single) parameter of an existing object of the same type as the constructor's class, and returns a deep copy of the object sent as a parameter.