What happens if we put only static hello() and not static void hello() in any functions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What happens if we put only static hello() and not static void hello() in any functions?

why do we have to put both static and void image method . why doesn't the program run with only static??

17th Aug 2018, 6:06 AM
Jinyoongisaranghe
Jinyoongisaranghe - avatar
1 Answer
+ 1
static isn't a return type
17th Aug 2018, 7:42 AM
BlazingMagpie
BlazingMagpie - avatar