What is the difference between a copy constructor and an
overloaded assignment operator?
Answer Posted / vsinghal
In case of copy constructor when the object goes out of
scope its destructor will be called while in case of
assignment operator no destructor will be called.
Is This Answer Correct ? | 12 Yes | 14 No |
Post New Answer View All Answers
Define what is constructor?
Why do we use vector in c++?
Why c++ is better than c language?
Why Pointers are not used in C++?
Refer to a name of class or function that is defined within a namespace?
What is the array and initializing arrays in c++?
What is a pointer with example?
Is facebook written in c++?
What do you mean by function pointer?
Evaulate: 22%5 a) 2 b) 4 c) 0
Is swift faster than go?
What can I safely assume about the initial values of variables which are not explicitly initialized?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What is the full form of c++?
What is the difference between a declaration and a definition?