GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  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