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
string S convert it to a palindrome by doing chara, C/C++ Programming

Pls i only need help with program 2. #include #include using namespace std; int main() { int FilingStatus; cout cout cout cout cout cout

Write a simple telephone book program that stores the names and phone numbers of your friends/acquaintances in a file. Your program should have the abilities to: a. Add entries (n

Question 1: (a) Explain clearly the following concepts using suitable examples of your own:- (i) concrete class v/s abstract class (ii) constructor v/s over

Explain the Symbolic Constants in c language? Symbolic constants are the constants of any type that declared by using the #define compiler directive and it is a preprocessor di

world wide web

write a program to solve e^x


Implement (a part of) electronic election Scenario where following political parties are participating in election: PPP, PML and PTI.  Create a class PollingStation where it stor

I have a program and I want someone to fix it for me by using basic c language program.