here is the error.
.exe'does not contain a static 'Main' method suitable for an entry point.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ObjectOriented
{
class Greet
{
public void Hello()
{
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
}
---------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ObjectOriented
{
class TestClass
{
static void main(String[]args)
{
Greet test = new Greet();
test.Hello();
}
}
}