Problem:
Question 1- Define a class for a complex number of the form a+bi, where a is the real part, b is the imaginary part and i is the symbol for the square root of -1. Call the class "Complex".
Question 2- Consider the parts of a complex number, a and b, to be double values being stored in the private portion of the class.
Write the code step by step and explain it.