C++ Interview Questions

1. Explain Copy Constructor.It is a constructore which initializes it's object member variable with another object of the same class. If you don't implement a copy constructor in your class, the compiler automatically does it. 2. When do you call copy constructors?Copy constructors are called in these situations:i.)when...
Read more