复制构造函数用法 [英] Copy Constructor Usage
本文介绍了复制构造函数用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在哪里使用复制构造函数?
实时使用Copy构造函数?
Where do we use copy constructor ?
Real Time use of Copy constructor ?
推荐答案
Hi,
String str=new String(); // Constructor
String strTwo=str; // copy constructor
这与ASP.NET有什么关系?
如果你不知道这样的东西,你应该阅读书籍和文章,而不是在论坛中提出广泛的问题。您可以使用复制构造函数构建副本。
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.
这篇关于复制构造函数用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文