The following code defines a class ComplexNumber. Write a
two-argument constructor for this class that assigns values to its two
instance variables.
class ComplexNumber {
float re, im;
public ComplexNumber (float re, float im) {
this.re = re;
this.im = im;
}
}