Java:Deep Copy构造函数

时间:2015-04-10 22:17:45

标签: java copy-constructor deep-copy

我想检查这是否是我创建的深拷贝构造函数。

private int redPixel;
private int greenPixel;
private int bluePixel;

public Pixel(Pixel other)
{
  this.redPixel = other.redPixel;
  this.greenPixel = other.greenPixel;
  this.bluePixel = other.bluePixel;
}

0 个答案:

没有答案