Copy constructor | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 7

Copy constructor

Is it necessary that copy constructor argument should be const in C++?

21st Jun 2017, 3:48 AM
Keep in mind šŸ˜Ž
Keep in mind šŸ˜Ž - avatar
2 Respostas
+ 5
Thanks I get it
21st Jun 2017, 4:23 AM
Keep in mind šŸ˜Ž
Keep in mind šŸ˜Ž - avatar
+ 2
id assume so. this way the values of the parameter cannot be changed during the copy.
21st Jun 2017, 4:23 AM
Michael Szczepanski
Michael Szczepanski - avatar