What happens if we put only static hello() and not static void hello() in any functions? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
+ 1
static isn't a return type
17th Aug 2018, 7:42 AM
BlazingMagpie
BlazingMagpie - avatar