什么是复制和克隆的区别? [英] What is the difference between copying and cloning?
本文介绍了什么是复制和克隆的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有编程的一本权威的参考?
Is there a definitive reference on this in programming?
我看到有很多人是指深拷贝和克隆为同样的事情。这是真的?
I see a lot of people refer to deep copying and cloning as the same thing. Is this true?
它是依赖于语言?
有一个小点,但它困扰着我...
A small point, but it was bothering me...
推荐答案
有这些概念没有正式的定义,ATLEAST不是一个跨越所有语言。
There's no formal definition of these concepts, atleast not one that spans all languages.
什么是平时常见的,但:
What's usually common though:
- 克隆 - 创建一个基于内容存在一些新的东西
- 复制 - 从东西存在其他的东西(也已经存在)复制
这篇关于什么是复制和克隆的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文