import Java.awt.Point;
import java.io.IOException;
import com.sun.corba.se.impl.io.OptionalDataException;
/**
* 克隆测试br
* 以方形类为例,比较了深克隆(deep clone)与浅克隆(shallow clone)的异同
*
* @see #clone()
* @author 88250
* @version 1.0.0, 2007-8-26
*/
public class CloneTester
{
private Square square = new Square();
private Square cpySquare = null;
/**
* 浅克隆操作
*/
public void shallowClone()
{
square.setSideL...[ 查看全文 ]