What is the difference between a copy constructor and an
overloaded assignment operator?
Answer Posted / guest
A copy constructor constructs a new object by using the
content of the argument object. An overloaded assignment
operator assigns the contents of an existing object to
another existing object of the same class.
| Is This Answer Correct ? | 44 Yes | 12 No |
Post New Answer View All Answers
What is the real purpose of class – to export data?
What is c++ map?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Why c++ does not have finally?
What it is and how it might be called (2 methods).
Which should be more useful: the protected and public virtuals?
How a new operator differs from the operator new?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
Explain virtual destructor?
What is c++ similar to?
Describe the advantage of an external iterator.
Do class declarations end with a semicolon?
Why is swift so fast?
What do you mean by function and operator overloading in c++?
What is exception handling? Does c++ support exception handling?