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
Define External Static Storage Class - Computer Programming? An external static is declared outside of all the functions and is obtainable to all functions in that program. The

Illustration of Grid function: For illustration, the script below creates two individual figure windows. At First, it clears the figure window. Then, it generates an x vector

submitting solutions in C language should not use functions from / as these files do not exist in gcc

evolutio of object oriented programing

#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

In this sub-task will you implement three functions for the final three function prototypes that will do exactly the same as the three functions that you have just written. This ti

Write a program to input two integers. If they are equal display "The numbers are equal". Otherwise display a message if the first is a multiple of the second or if it is not a mul

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing tha

Floating  literal They can be written in common decimal as well as scientific notation (floating point representation). By default it is of type double. F, L is applied only to

how would land elevation have changed if Coronado had traveled 150 miles due west from what is today Arizona instead of east toward New Mexico