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 runtime errors c++?
What is the two main roles of operating system?
What is the type of this pointer in c++?
Explain function overloading and operator overloading.
When you overload member functions, in what ways must they differ?
What are the steps in the development cycle?
What is the size of a vector?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
Who discovered c++?
Explain class invariant.
what kind of projects are suitable for c and c++
Differentiate between declaration and definition.
What is the use of turbo c++?
What is the exit function in c++?
Explain Text Manipulation Routines?