Answer Posted / sagarson
Copy constructors are called in following cases:
a) when a function returns an object of that class by value
b) when the object of that class is passed by value as an
argument to a function
c) when you construct an object based on another object of
the same class
d) When compiler generates a temporary object
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Is c++ a good first language to learn?
What is increment operator in c++?
Can we define function inside main in c++?
How can you tell what shell you are running on unix system?
Write about c++ storage classes?
What is endl?
What is the use of c++ programming language in real life?
What is class invariant in c++?
Do you know the problem with overriding functions?
What is the fastest c++ compiler?
What are smart pointers?
Why is c++ is better than c?
what is data abstraction in C++?
What is stack unwinding?
What is c++ redistributable?