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


Please Help Members By Posting Answers For Below Questions

Define what is constructor?

832


Why do we use vector in c++?

821


Why c++ is better than c language?

817


Why Pointers are not used in C++?

852


Refer to a name of class or function that is defined within a namespace?

881


What is the array and initializing arrays in c++?

766


What is a pointer with example?

916


Is facebook written in c++?

788


What do you mean by function pointer?

869


Evaulate: 22%5 a) 2 b) 4 c) 0

892


Is swift faster than go?

920


What can I safely assume about the initial values of variables which are not explicitly initialized?

851


write a porgram in c++ that reads an integer and print the biggest digit in the number

2045


What is the full form of c++?

955


What is the difference between a declaration and a definition?

850