What is the Diffrence between a "assignment operator" and a
"copy constructor"?
Answer Posted / dee
assignment operator copies the values of one object to
another of the same class.It will excute only when the
right side of the variable is object and two sides are not
equal.It does shallow copy
Copy constructor craetes the object if its not existing and
copies the values of another object of the same class and
it does the deep copy.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why c++ is created?
What is the advantage of c++ over c?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
How would you implement a substr() function that extracts a sub string from a given string?
Comment on assignment operator in c++.
What is a volatile variable in c++?
What is the difference between prefix and postfix versions of operator++()?
Why is c++ awesome?
How do I run a program in notepad ++?
Which is the best c++ compiler for beginners?
how to explain our contribution in the project?
why is iostream::eof inside a loop condition considered wrong?
What is & in c++ function?
Is java made in c++?