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
Question : (a) What is a structure? Provide a simple example of your own to illustrate this feature. (b) How does a structure differ from an array? (c) Describe a structu

Project Description: We are aiming to prepare an industry first in the m-commerce world. M-commerce payment processing programmers required Skills required are C Programmi

#questi An array of n numbers is given, where n is an even number. The maximum as well as minimum of these given numbers need to be determined. Which of the following is true about

Prepare data from fixed OCR areas scanned. Project Description: Project is to design software which can use character recognition only on certain areas of scanned pdf's/ jpeg

A: auto: the default. Variables are created and initialized automatically while they are defined and destroyed at the ending of the block containing their definition. They are not

C program to print fibonacci series: int fibo(long int); void main() {                 long int a=0,n;                 printf ("how many terms\n");

Two numbers to be subtracted using bitwise operations

A:BinaryHeap.h ------------ #ifndef BINARY_HEAP_H_ #define BINARY_HEAP_H_ #include "dsexceptions.h" #include "vector.h" // BinaryHeap class // CONSTRUCTION: wi

It is a pointer accessible only in the member functions of a struct, class or union type. It points to the object for which the member function is called. Static member functions d

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes