Copy constructor and an overloaded assignment operator, C/C++ Programming

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

Ans) A copy constructor constructs a latest 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 similar class.             

 

 

Posted Date: 4/9/2013 12:51:59 AM | Location : United States







Related Discussions:- Copy constructor and an overloaded assignment operator, Assignment Help, Ask Question on Copy constructor and an overloaded assignment operator, Get Answer, Expert's Help, Copy constructor and an overloaded assignment operator Discussions

Write discussion on Copy constructor and an overloaded assignment operator
Your posts are moderated
Related Questions
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Binary logical bit-wise operators  There are three logical bit-wise operators :                   &             and                 |              or


Type Casting Implicit type conversions, as allowed by the language, can lead to errors creeping in the program if care is not taken. Thus, explicit type conversions may be used

write a c++ program, that finds the minimum total number of shelves, including the initial one, required for this loading process.

Explain some String Oriented Library Functions? To make simpler string processing we can use special string oriented library functions. Mainly the C compilers include library f

Question 1 Describe the following with respect to pointers in C language- Pointers and Arrays Usage of Pointers in functions Write programs in C to demonstrate the

Two numbers to be subtracted using bitwise operations

how to declare multi dimensional array

Define Pure Virtual Function? Why & when it is used?