Question: Consider the following class definition to define a class for complex numbers: class Complex private: double real; double imaginary; publiC: Complex (double r 0, double

Consider the following class definition to define a class for complex numbers: class Complex private: double real; double imaginary; publiC: Complex (double r 0, double i-0) real-r; imaginary-i; and the following main-Q function: int main () Complex X, Y, Z; cout > X; cin >> y; Z=X+Y; cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
