a question about methods | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

a question about methods

guy's can i create a method does more than an operation i mean can the statement have more than one structure loop and conditional for example or a method can print more than a shape ?? or just no

29th Nov 2016, 1:07 PM
Nada El Sayed
Nada El Sayed - avatar
2 Answers
0
yes. why it wouldn't be possible? i mean the METHOD Main, that does everything on your program, does EVERYTHING on your program
30th Nov 2016, 1:06 AM
Gustavo Luis
Gustavo Luis - avatar
0
yes i also thought about the main method but you know the language has rules might only the main method does everything that what i thought about so i have to be sure from someone thanks
30th Nov 2016, 1:14 AM
Nada El Sayed
Nada El Sayed - avatar