In C++, a copy constructor is called when:
Show answerHide answer
Correct answer: (B) An object is initialised from another object of the same class
Explanation
Example: Student s2 = s1;
Correct answer: (B) An object is initialised from another object of the same class
Explanation
Example: Student s2 = s1;
This is question 136 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.