Package generic.complex

# Class Complex

java.lang.Object
generic.complex.Complex

public class Complex extends Object
A complex number a + bi This doesn't support any actual operations, nor does it implement `Comparable`. It's simply enough to store and print the number.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Complex(double real, double imaginary)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `getImaginary()`
  `double`
  `getReal()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Complex

    public Complex(double real, double imaginary)

- ## Method Details

  - ### getReal

    public double getReal()

  - ### getImaginary

    public double getImaginary()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`