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 the difference between the indirection operator and the address of oper-ator?
What is encapsulation in C++? Give an example.
What is recursion?
Describe delete operator?
When we use Abstract Class and when we use Interface?where we will implement in real time?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
What is binary object model?
What is abstract keyword in c++?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
How does java differ from c and c++?
Is c++ proprietary?
What is else syntax in c++?
Why c++ is called oop?
Is c++ an oop?
What is conditions when using boolean operators?