Please debug | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
17th Mar 2021, 7:04 PM
Amateur
5 Answers
+ 2
Fatemeh Constructor name should be same as class name. https://code.sololearn.com/c9nO614M33pP/?ref=app
17th Mar 2021, 7:09 PM
A͢J
A͢J - avatar
+ 1
Thank u so much
17th Mar 2021, 7:11 PM
Amateur
+ 1
And obviously, you probably want to print the result of adding z1 and z2. It needs to be z3.println()
17th Mar 2021, 8:15 PM
Eddy M
+ 1
True👌
18th Mar 2021, 1:33 AM
Amateur
+ 1
Class was "Complex" but constructor was "complex"
18th Mar 2021, 5:46 PM
Amateur