Why print 5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why print 5

Because addToOne() method does not return the value of num therefore the method addToOne() does not effect the value of x

9th Oct 2020, 2:39 AM
Muhammad Kashif
Muhammad Kashif - avatar
1 Answer
0
Oops sorry I forgot
9th Oct 2020, 2:43 AM
Muhammad Kashif
Muhammad Kashif - avatar