How to overload the Main() method in C#
Program.cs
using System;
namespace Codeaft
{
    class Program
    {
        public static void Main(string s)
        {
            Console.WriteLine("Welcome to " + s);
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            Main("Codeaft");
        }
    }
}
Output
codeaft@codeaft:~/csharp$ dotnet run
Hello, World!
Welcome to Codeaft
codeaft@codeaft:~/csharp$ 
Comments and Reactions