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
Describe private, protected and public?
What are the differences between java and c++?
Explain what you mean by a pointer.
Is c++ high level programming language?
What is the use of data hiding?
How does a C++ structure differ from a C++ class?
What are the advantages of c++? Explain
How do you flush a buffer in c++?
What is stoi in c++?
Why is c++ considered difficult?
What are references in c++? What is a local reference?
Define private, protected and public access control.
What is the difference between the parameter to a template and the parameter to a function?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?