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
What is the difference between ++ count and count ++?
What are vtable and vptr?
Describe the process of creation and destruction of a derived class object?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
Can circle be called an ellipse?
What is setw manipulator in c++?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What do you mean by delegate? Can a user retain delegates? what does the following statement mean?
int (*a)[4] Differentiate between a template class and class template in c++? Is dev c++ free? Do vectors start at 0? What are the advantages of using a pointer? Is c++ a low level language? What is c++ good for?