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
Why is standard template library used?
Write about a nested class and mention its use?
Comment on c++ standard exceptions?
What is c++ programming language?
What is an html tag?
Write a program to concatenate two strings.
Differentiate between an array and a list?
What is a constant? Explain with an example.
How can we access protected and private members of a class?
What is enum class in c++?
What is a base class?
What do you understand by pure virtual function? Write about its use?
What is the c++ programming language used for?
What is lvalue?
what is oops and list its features in c++?