Copy constructor

Applies to: cpp

A copy constructor creates a new object from an existing object of the same type.

Robot b = a;  // copy construction

See also: constructor, move-constructor