0

I wanted to check if this a deep copy constructor I have created.

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;
}
man2006
  • 43
  • 2
  • 7

0 Answers0