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
explain me for loop

i need a program for finding the last fibonacci number

how can i easily make a program?

I want to take 1.1 as input but when I am declaring it as float the output is given as 1.1000000

What if one forget the [] when deleteing array allocated through new T[n]? A: All life comes to a disastrous end. It is the programmer's responsibility not the compiler's to

Develop Pidgin for Windows Project Description: I want to build Pidgin (open source instant messenger) for Windows with D-Bus support enabled. I've effectively built both

c | c-c-c-c-c | c-c-C-c-c | c find distance between difftent carbon atom by programing

Literals (Constants) Constants are data storage locations whose address is not accessible for the user. Their value is not altered during the course of the program. Literal

Write a program to get the largest element in an array using Function? # include int largest(int b[],int); main() { int lar,a[5]={12,2,36,40,5}; lar=largest(a,n); printf("

Program to show the ascii value of characters: int main() {                 int one_char;                 cout                 one_char = getch();