Which among the following is true for copy constructor?
A. The argument object is passed by reference
B. It can be defined with zero arguments
C. Used when an object is passed by value to a function
D. Used when a function returns an object
Answer:B
Which among the following is true for copy constructor?
A. The argument object is passed by reference B. It can be defined with zero arguments C. Used when an object is passed by value to a function D. Used when a function returns an object