The copy constructor is executed when an object is declared and initialized by using the value of another object.
1.6m questions
2.0m answers