![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copy data and send it to other file, with diff config | single | Shell Programming and Scripting | 0 | 01-29-2008 06:56 AM |
| scalar variable assignment in perl + { operator | JamesGoh | Shell Programming and Scripting | 3 | 01-20-2008 02:09 PM |
| Constructor problem | woot4moo | UNIX for Dummies Questions & Answers | 4 | 09-05-2006 10:49 PM |
| copy diff files | Hitori | UNIX for Advanced & Expert Users | 3 | 07-15-2006 03:53 AM |
| diff 2 files; output diff's to 3rd file | blt123 | Shell Programming and Scripting | 2 | 05-28-2002 08:29 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
what is diff b/w copy constructor and overloaded assignment operator
Helo i m new in c++.
i m confuse about what is exact difference b/w copy constructor and overloaded assignment operator. Regards, Amit |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
A copy constructor creates a new object as part of the assignment.
An overloaded assignment assigns a value to an existing object. |
|
#3
|
|||
|
|||
|
Quote:
copy constructor make a deep copy i understand this but an overloaded assignment operator make shall copy or deep copy Regards, Amit |
|
#4
|
|||
|
|||
|
In both cases whether a shallow or deep copy is done is dependent on the target class's implementation.
|
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|