What happens if we put only static hello() and not static void hello() in any functions? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 1
static isn't a return type
17th Aug 2018, 7:42 AM
BlazingMagpie
BlazingMagpie - avatar