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
Difference between overloaded functions and overridden functions
Is the declaration of a class its interface or its implementation?
What is a tree in c++?
Why is null pointer used?
Explain the extern storage classes in c++.
Why is the function main() special?
Write about the access privileges in c++ and also mention about its default access level?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
How delete [] is different from delete?
What does flush do c++?
What is virtual function? Explain with an example
Can we run c program in turbo c++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Explain about vectors in c ++?
What is the difference between C and CPP?