A copy constructor is called ……………..
A. When an object is passed as a parameter to any of the member functions
B. When a member function returns an object
C. When an object is passed by reference to an instance of its own class
D. All the above
Answer:D
A copy constructor is called ……………..
A. When an object is passed as a parameter to any of the member functions B. When a member function returns an object C. When an object is passed by reference to an instance of its own class D. All the above