✅ Why and How does this work?
why does this work? when i think of code, i think of line to line declaration, so id think Main() runs furst, and then the method. so why is this?
using System;
public class Program
{
static void Main(string[] args)
{
Welcome();
}
static void Welcome()
{
Console.WriteLine("Welcome");
Console.WriteLine("I am a method");
Console.WriteLine("End of method");
}
}