What is the difference between a copy constructor and an
overloaded assignment operator?

Answer Posted / guest

A copy constructor constructs a new object by using the
content of the argument object. An overloaded assignment
operator assigns the contents of an existing object to
another existing object of the same class.

Is This Answer Correct ?    44 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ & why it is used?

836


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

2042


Define whitespace in C++.

984


What is the two main roles of operating system?

741


What does the linker do?

811


If a function doesn’t return a value, how do you declare the function?

833


What is iterator in c++?

884


Explain register storage specifier.

809


What is c++ namespace?

977


Do vectors start at 0 c++?

767


What is ios flag in c++?

897


what is the difference between overloading & overriding? give example.

827


Distinguish between new and malloc and delete and free().

790


Can notepad ++ run c++?

752


What is the difference between #import and #include?

801