What is the difference between a copy constructor and an
overloaded assignment operator?
Answer Posted / siddharth wighe
Second main difference:
A copy constructor has no return type, whereas an
overloaded assignment operator has one.
Third difference (trivial):
Name of the copy constructor is the same as that of the
class in which it is defined
----------------------
http://swighe.nipl.net
| Is This Answer Correct ? | 32 Yes | 7 No |
Post New Answer View All Answers
How would you obtain segment and offset addresses from a far address of a memory location?
Is java the same as c++?
Do you know the problem with overriding functions?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Is arr and &arr are same expression for an array?
What is binary search in c++?
Differentiate between late binding and early binding.
Write about the role of c++ in the tradeoff of safety vs. Usability?
What does flush do c++?
Why are pointers used?
Why is c++ not purely object oriented?
How to defines the function in c++?
When does the c++ compiler create temporary variables?
How do you write a function that can reverse a linked-list?
What is data type in c++?