Copy constructor (C++)
id:
copy-constructor-c-250-17658919
title:
Copy constructor (C++)
text:
In the C++ programming language, a copy constructor is a special constructor for creating a new object as a copy of an existing object. Copy constructors are the standard way of copying objects in C++, as opposed to cloning, and have C++-specific nuances. The first argument of such a constructor is a reference to an object of the same type as is being constructed, which might be followed by parameters of any type. Normally the compiler automatically creates a copy constructor for each class but
brand slug:
wiki
category slug:
encyclopedia
description:
original url:
https://en.wikipedia.org/wiki/Copy_constructor_(C%2B%2B)
date created:
date modified:
2023-05-17T14:15:01Z
main entity:
{"identifier":"Q11163184","url":"https://www.wikidata.org/entity/Q11163184"}
image:
fields total:
13
integrity:
13