Then overload the DisplayGreeting method to allow the code to compile.
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
DisplayGreeting();
string name = "Simon";
DisplayGreeting(name);
}
}
}
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
DisplayGreeting();
string name = "Simon";
DisplayGreeting(name);
}
}
}


Jignesh KumarRank #91 · 22.9K reputationPosted Dec 15, 2018, 7:49 AM EST