Why do the methods with the return type void still returns a value? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Why do the methods with the return type void still returns a value?

static void SayHi() { Console.WriteLine("Hello"); } the above method will return a value Hello Which has the type string and it has void return in it!

1st Jan 2017, 7:43 AM
Usama Zahid
Usama Zahid - avatar
0 Antworten