C# is case sensitive. The sayHello()
call should be SayHello()
.
static void Main(string[] args)
{
//sayHello(); <-- Invalid due to lowercase "s"
SayHello();
Console.Read();
}
static void SayHello()
{
Console.Write("Hello World!, I'm practicing at the moment.");
}