Help is this code correct? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
16th May 2020, 3:52 PM
Willy
Willy - avatar
2 Answers
17th May 2020, 6:55 AM
Oma Falk
Oma Falk - avatar
+ 1
The best way to find out if your code is correct, is to *test* it. Create an instance of your class, and then see if it meets your expectations, if all the data you wanna have is in there. Also, you might get a helpful error message if something's seriously off.
17th May 2020, 7:25 AM
HonFu
HonFu - avatar