Answer Posted / praveen
A copy constructor is used in the following cases.
* When compiler generates a temporary object.
* When an object is return type of pointer.
* This is a temporary object.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is the full form of dos?
Write about the members that a derived class can add?
what are the characteristics of Class Members in C++?
How much maximum can you allocate in a single call to malloc()?
How java is different from c and c++?
What does it mean to declare a destructor as static?
What are signs of manipulation?
What do you understand by zombie objects in c++?
You run a shell on unix system. How would you tell which shell are you running?
What is the use of function pointer?
Difference between a copy constructor and an assignment operator.
Which ide is best for c++?
What is c++ flowchart?
When should we use container classes instead of arrays?
What is a manipulator in c++?