| |
GeekInterview.com > Interview Questions > Programming > C++
| Print | |
Question: what is importance of const. pointer in copy constructor?
|
| July 07, 2006 04:31:52 |
#1 |
| supriya ahire |
Member Since: Visitor Total Comments: N/A |
RE: what is importance of const. pointer in copy const... |
Hi all, when we try to copy one object into another using copy constructer,we need to maintain the original copy of original object (which we are copying) so while passing object we make it constant and we pass it as a by reference. Thanks & Regards, Ms.Supriya Ahire. |
| |
Back To Question | |