Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Where do we use copy constructor ?
Real Time use of Copy constructor ?
Posted
Comments
Sergey Alexandrovich Kryukov 8-Jan-13 23:20pm    
Real time?! Aha...
—SA

Hi,

C#
String str=new String(); // Constructor 
String strTwo=str; // copy constructor 
 
Share this answer
 
What does this have to do with ASP.NET ?

IF you have no idea about stuff like this, you should read books and articles, not ask broad questions in forums. You use a copy constructor to construct a copy.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900