Why do the methods with the return type void still returns a value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers