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
Why do we use classes in c++?
What is flush () in c++?
What is a local reference?
What is the default access level?
Explain the difference between overloading and overriding?
What is an undefined reference/unresolved external symbol error and how do I fix it?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
Why do we need pointers?
Can I learn c++ without knowing c?
What do you mean by “this” pointer?
What is a class template?
What is runtime polymorphism in c++?
Will the following program execute?
Does c++ have arraylist?
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number