0

Can you have multiple methods to perform on one operation?

static void Main(string[] args) { Console.WriteLine("Hello World!"); } // Can I add more methods between these brackets?

26th Dec 2020, 6:56 PM
Dr.Tevvy Beats
Dr.Tevvy Beats - avatar
1 Respuesta
+ 1
So ... in C#. I suppose is the language. Yeah, you can do whatever u want. You are the programmer!!! If you want to call it from main, it will have to be static since a static method cannot directly call a non-static method of the class.
26th Dec 2020, 7:19 PM
Javadev