When a copy constructor may be called?

Question:
 When a copy constructor may be called?

1. A. When an object of the class is returned by value.

2.When an object of the class is passed (to a function) by value as an argument.

3.When an object is constructed based on another object of the same class

4.All of the above

Posted Date:-2022-07-04 02:59:34


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!