copy constructor and an overloaded assignment operator?, C/C++ Programming

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

 

 

 

Posted Date: 3/15/2013 3:54:45 AM | Location : United States





A: A copy constructor builds up a new object using the content of the argument object. Any overloaded assignment operator assigns the contents of presented object to another existing object of the similar class.

Posted by | Posted Date: 3/15/2013 3:55:15 AM


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
The game of hangman may have originated in the Victorian era, and involves trying to guess a word by suggesting letters. The game is played as follows: A word is chosen and the pl

Ask question #Minimum 100 words acceptedEducational Objectives: After completing this assignment, the student should be able to accomplish the following: Apply generic algorithms i

Templates permit to create generic functions that admit any data type as parameters and return value without having to overload the function with all the possible data types. Until

GetChar - get a character from the keyboard, echo to the display and return it in reg al. - Note: if a linefeed (LF) is received (Enter key), a carriage return (CR) will als



Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

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

The procedure +, * and list take arbitrary numbers of arguments. One way to define such a procedure is to use define with dotted-tail notation. In a procedure definition, a paramet

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec