Write a C++ defining a class for complex numbers. A complexnumber is a number of the form: , a+b∗i where, for our purposes, aand b are numbers of type double, and i is a number that representsthe quantity root of −1. You should represent a complex number hereas two values of type double. You should name the variables realand imaginary. You can call the class Complex. You should include aconstructor with two parameters of type double that can be used toset the member variables of an object to any values. You can alsoinclude a default constructor that initializes the object
OR
OR