What is the Diffrence between a "assignment operator" and a
"copy constructor"?
Answer Posted / dee
assignment operator copies the values of one object to
another of the same class.It will excute only when the
right side of the variable is object and two sides are not
equal.It does shallow copy
Copy constructor craetes the object if its not existing and
copies the values of another object of the same class and
it does the deep copy.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is C++ exceptional handling?
List the special characteristics of constructor.
Write a program to find the Fibonacci series recursively.
Differentiate between a constructor and a method in C++.
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What is the function to call to turn an ascii string into a long?
What is low level language in simple words?
How can a called function determine the number of arguments that have been passed to it?
What is the use of this pointer in c++?
Write a Program for find and replace a character in a string.
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is abstraction c++?
Explain stack & heap objects?
List the merits and demerits of declaring a nested class in C++?
What is split a string in c++?