What is the Diffrence between a "assignment operator" and a
"copy constructor"?
Answer Posted / kishore
Copy constructors are used during class object
initialization and assignment operators are invoked during
object assignment.
XYZ c;
XYZ Obj = c; -> invoke copy constructor
XYZ d;
d = c; -> invoke assignment operator
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is a unnitialised pointer?
Explain Text Manipulation Routines?
When to use “const” reference arguments in a function?
How is new() different from malloc()?
what are the events occur in intr activated on interrupt vector table
What is boyce codd normal form in c++?
What is the full form of dos?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is the use of function pointer?
What is the difference between #define debug 0 and #undef debug?
What is the function of I/O library in C++ ?
Can we change the basic meaning of an operator in c++?
what are the iterator and generic algorithms.
How long does it take to get good at leetcode?
What are exceptions c++?