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
How delete [] is different from delete?
What is c++ and its features?
Explain what is oop?
What do you mean by funtion prototype?
Explain operator overloading.
List different attributes in C++?
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
Can comments be longer than one line?
What is lambda expression c++?
What is a vector c++?
When should we use container classes instead of arrays?
What is #include iostream h in c++?
What is size of string in c++?
Define token in c++.
What is the difference between method overloading and method overriding in c++?