标签: 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; }