copy constructor
nafnorð enska
Merkingar
afritasmiður nafnorð, karlkyn aðalheiti
forritun Smiður sem smíðar óháð afrit af fyrirmynd.
The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to initialize one object from another of the same type. Copy an object to pass it as an argument to a function.