Simplest thing that could possibly work:
public Complex add(Complex z2) { return new Complex(2, 2); } public long getRealPart() { return 2; } public long getImaginaryPart() { return 2; }