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 prototype for that c string function?
Is c# written in c++?
What are the advantages of using a pointer?
What is scope resolution operator in c++ with example?
What are signs of manipulation?
Do inline functions improve performance?
Differentiate between a pointer and a reference with respect to c++.
Why do we use vector in c++?
What does iomanip mean in c++?
What is this pointer in c++?
Distinguish between a # include and #define.
How do pointers work?
What are static variables?
What is do..while loops structure?
Why would you use pointers in c++?