1.

The deep copy is possible only with the help of __________(a) Implicit copy constructor(b) User defined copy constructor(c) Parameterized constructor(d) Default constructorI got this question in examination.Query is from Copy Constructor in section Constructors and Destructors of Object Oriented Programming

Answer»

Correct choice is (B) USER defined copy constructor

The best explanation: While using explicit copy constructor, the pointers of COPIED object POINT to the intended memory location. This is assured since the PROGRAMMERS themselves manipulate the addresses.



Discussion

No Comment Found

Related InterviewSolutions