且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

clone()方法

更新时间:2023-09-29 17:11:34

会发生什么当你尝试那个?
What happens when you try that?


相同的消息克隆受到保护
the same message clone is protected



'的确切含义;复印"可能取决于对象的类。
The precise meaning of "copy" may depend on the class of the object.



也意识到为了能够生成自己的克隆,你必须是Cloneable。

Realize also that to be able to produce clones of yourself, you must be Cloneable.