Method overloading

using System;

 

namespace ConvertTest

{

    class Program

    {

        static void Main(string[] args)

        {

            Test(null);

        }

 

        private static void Test(object o)

        {

            Console.WriteLine(“Oject”);

        }

 

        private static void Test(string o)

        {

            Console.WriteLine(“String”);           

        }

    }

}