operator - method

RgbColour operator -(
  1. RgbColour other
)

Implementation

RgbColour operator -(RgbColour other)
{
  return new RgbColour(red - other.red, green - other.green, blue - other.blue);
}