Cloneable源码

2018-01-12  本文已影响0人  one_mighty

1、简介

1.1、英文注释

A class implements the Cloneable interface to indicate to the link java.lang.Object#clone() method that it is legal for that method to make a field-for-field copy of instances of that class.

1.2、中国话

实现Cloneable 接口的类是一个方法签名,它表明了该类可以使用所有累的父类的clone方法来进行对一个类成员到类成员的拷贝。

2、代码

2.1、所属包及类名

package java.lang;
public interface Cloneable {
}

2.2、类成员

2.3、类方法

另:使用详见原型设计模式
上一篇 下一篇

猜你喜欢

热点阅读