+ 1
What's the problem???
6 Answers
+ 2
The variables x and y in the print method are not declared and initialized. The x and y of the Complex method are not in scope of the print method and only exist within the scope of the Complex method.
+ 2
Use Real, Imag with in method print() instead of x,y.
+ 1
x,y are local variable of the constructor hence they are not in scope of print function.
if you want you can replace x and y with real and Imag
+ 1
ChaoticDawg Complete answer thank u
+ 1
Jayakrishnađźđł Thanksđ
0
Suryansh sharma so niceđ