why should we use method wen we can do what ever in "Main"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why should we use method wen we can do what ever in "Main"?

13th Oct 2016, 1:20 PM
alireza
alireza - avatar
2 Answers
+ 3
methods will help make your code look cleaner, more understandable for future debugging. Methods groups your codes depending on their uses preventing your code to look scattered. Methods will also help some of your code reusable.
15th Oct 2016, 11:33 AM
Erwin Mesias
Erwin Mesias - avatar
0
no matter i got it.
13th Oct 2016, 6:16 PM
alireza
alireza - avatar